/// <summary> /// 颜色校验 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnColor_Click(object sender, EventArgs e) { this.lblResultColor.Text = ValidHelper.IsColor(this.txtColor.Text).ToString(); }