Beispiel #1
0
        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;
        }
Beispiel #2
0
        private void navBarDNPembelian_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            if (CnDnPemb.IsDisposed)
            {
                CnDnPemb           = null;
                CnDnPemb           = new CnDnPembelian();
                CnDnPemb.MdiParent = this;
            }

            CnDnPemb.Show();
            CnDnPemb.Focus();
        }
 private void barButtonItemDNPemb_trans_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (frmDNPembelian == null || frmDNPembelian.IsDisposed)
     {
         frmDNPembelian           = new CnDnPembelian();
         frmDNPembelian.MdiParent = this;
         frmDNPembelian.Show();
     }
     else
     {
         frmDNPembelian.Activate();
     }
 }