private void K_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmKhuVuc kv = new frmKhuVuc(); kv.MdiParent = this; kv.Show(); }
void txtMa_Kv_Validating(object sender, CancelEventArgs e) { string strValue = txtMa_Kv.Text.Trim(); bool bRequire = false; frmKhuVuc frmLookup = new frmKhuVuc(); DataRow drLookup = Lookup.ShowLookup(frmLookup, "LIKHUVUC", "Ma_Kv", strValue, bRequire, ""); if (bRequire && drLookup == null) { e.Cancel = true; } if (drLookup == null) { txtMa_Kv.Text = string.Empty; lbtTen_Kv.Text = string.Empty; } else { txtMa_Kv.Text = drLookup["Ma_Kv"].ToString(); lbtTen_Kv.Text = drLookup["Ten_Kv"].ToString(); } if ((((txtTextLookup)sender).AutoFilter != null) && ((txtTextLookup)sender).AutoFilter.Visible) { ((txtTextLookup)sender).AutoFilter.Visible = false; this.SelectNextControl(this.ActiveControl, true, true, true, true); } }
private void K_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmKhuVuc kv = new frmKhuVuc(); if (ExistsForm(kv)) { return; } kv.MdiParent = this; kv.Show(); }
private void barButtonItem17_ItemClick(object sender, ItemClickEventArgs e) { frmKhuVuc frm = new frmKhuVuc(); frm.Show(); }