public frmMain(FrmLogin f) { InitializeComponent(); regCustomer = new Reg_Customer(); regSuplier = new RegistrasiSuplier(); CnDnPemb = new CnDnPembelian(); fktrPemb = new FakturPembelian(); mStokApk = new MutasiStokApk(); CekKeluar = new PencairanCekBgKeluar(); PembHutang = new PembayaranHutang(); CnDnPenj = new CN_DNPenjualan(); fktrPenj = new FakturPenjualan(); pembPiutang = new PembayaranPiutang(); CekMasuk = new PencairanCekMasuk(); frmLogin = f; //SetParent regCustomer.MdiParent = this; regSuplier.MdiParent = this; CnDnPemb.MdiParent = this; fktrPemb.MdiParent = this; mStokApk.MdiParent = this; CekKeluar.MdiParent = this; PembHutang.MdiParent = this; CnDnPenj.MdiParent = this; fktrPenj.MdiParent = this; pembPiutang.MdiParent = this; CekMasuk.MdiParent = this; //xtraPropertyGrid1.PropertyGrid.AutoGenerateRows = true; }
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(); } }