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 navBar_MutasiStokApk_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { if (pembPiutang.IsDisposed) { mStokApk = null; mStokApk = new MutasiStokApk(); mStokApk.MdiParent = this; } mStokApk.Show(); mStokApk.Focus(); }
private void barButtonItemMutasiAPK_trans_ItemClick(object sender, ItemClickEventArgs e) { if (frmMutasiApk == null || frmMutasiApk.IsDisposed) { frmMutasiApk = new MutasiStokApk(); frmMutasiApk.MdiParent = this; frmMutasiApk.Show(); } else { frmMutasiApk.Activate(); } }