Esempio n. 1
0
 private void btnShowPN_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     employeesNavigationPage.Controls.Clear();
     NhapXuat.frmPhieuNhap frm = new NhapXuat.frmPhieuNhap();
     frm.btnDetails.Click += delegate
     {
         Cursor.Current = Cursors.WaitCursor;
         customersNavigationPage.Controls.Clear();
         NhapXuat.frmChiTietPhieuNhap frm1 = new NhapXuat.frmChiTietPhieuNhap();
         customersNavigationPage.Controls.Add(frm1);
         navigationFrame.SelectedPageIndex = 1;
         navBarControl.ActiveGroup         = customersNavBarGroup;
         Cursor.Current = Cursors.Default;
     };
     employeesNavigationPage.Controls.Add(frm);
 }
Esempio n. 2
0
 private void btnShowCTPN_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (string.IsNullOrEmpty(StaticValue.MaPhieuNhap))
     {
         MessageBox.Show("Vui lòng chọn phiếu nhập để có thể thực hiện được chức năng này!", CommonConstant.MESSAGE_WARNING, MessageBoxButtons.OK, MessageBoxIcon.Warning);
         return;
     }
     //show
     Cursor.Current = Cursors.WaitCursor;
     customersNavigationPage.Controls.Clear();
     NhapXuat.frmChiTietPhieuNhap frm1 = new NhapXuat.frmChiTietPhieuNhap();
     customersNavigationPage.Controls.Add(frm1);
     navigationFrame.SelectedPageIndex = 1;
     navBarControl.ActiveGroup         = customersNavBarGroup;
     Cursor.Current = Cursors.Default;
 }