private void navBarCNPenjualan_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { if (CnDnPenj.IsDisposed) { CnDnPenj = null; CnDnPenj = new CN_DNPenjualan(); CnDnPenj.MdiParent = this; } CnDnPenj.Show(); CnDnPenj.Focus(); }
private void barButtonItemCNPenj_trans_ItemClick(object sender, ItemClickEventArgs e) { if (frmCnPenjualan == null || frmCnPenjualan.IsDisposed) { frmCnPenjualan = new CN_DNPenjualan(); frmCnPenjualan.MdiParent = this; frmCnPenjualan.Show(); } else { frmCnPenjualan.Activate(); } }