public static void GridLookUpEditControlNotNull(GridLookUpEdit gridLookUpEdit, string title) { gridLookUpEdit.Properties.Appearance.BorderColor = System.Drawing.Color.Red; gridLookUpEdit.Focus(); gridLookUpEdit.SelectAll(); MessageBox.Show(string.Format("Vui lòng chọn {0}!", title), Resources.MessageBoxErrorMessageTitle, MessageBoxButtons.OK, MessageBoxIcon.Error); }
public static void GridLookUpEditControlNotNull(GridLookUpEdit gridLookUpEdit, string title) { gridLookUpEdit.Properties.Appearance.BorderColor = System.Drawing.Color.Red; gridLookUpEdit.Focus(); gridLookUpEdit.SelectAll(); MessageBox.Show(string.Format("Vui lòng chọn {0}!", title), Resource.MessageBoxErrorMessageTitle, MessageBoxButtons.OK, MessageBoxIcon.Error); }
void teSoXe_Enter(object sender, EventArgs e) { switch (gluLoai.Text) { case "": XtraMessageBox.Show("Vui lòng chọn loại xe trước!", Config.GetValue("PackageName").ToString()); gluLoai.Focus(); break; case "Phúc Hảo": case "Xe thuê": teKmDau.Focus(); break; } }
public static void GridLookUpEditNoMessage(GridLookUpEdit gridLookUpEdit) { gridLookUpEdit.Properties.Appearance.BorderColor = System.Drawing.Color.Red; gridLookUpEdit.Focus(); }