Esempio n. 1
0
 private void btnStore_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     waiting.ShowWaitForm();
     if (!IsFocusForm(typeof(Forms.frmStore), this))
     {
         Forms.frmStore frm = new Forms.frmStore();
         frm.MdiParent = this;
         frm.Show();
     }
     waiting.CloseWaitForm();
 }
Esempio n. 2
0
 private void navBarItem2_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
 {
     Waiting.ShowWaitForm();
     if (!_checkControl("frmStore"))
     {
         Forms.frmStore frm = new Forms.frmStore();
         frm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
         frm.TopLevel = false;
         frm.Dock = System.Windows.Forms.DockStyle.Fill;
         pControls.Controls.Add(frm);
         frm.Show();
     }
     Waiting.CloseWaitForm();
 }