예제 #1
0
        private void navBarSalesman_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            if (regSuplier.IsDisposed)
            {
                regSuplier           = null;
                regSuplier           = new RegistrasiSuplier();
                regSuplier.MdiParent = this;
            }

            regSuplier.Show();
            regSuplier.Focus();
        }
예제 #2
0
 private void barButtonItemSuplierTrans_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (frmRegSuplier == null || frmRegSuplier.IsDisposed)
     {
         frmRegSuplier           = new RegistrasiSuplier();
         frmRegSuplier.MdiParent = this;
         frmRegSuplier.Show();
     }
     else
     {
         frmRegSuplier.Activate();
     }
 }