private void btnShowCTPX_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (string.IsNullOrEmpty(StaticValue.MaPhieuXuat)) { MessageBox.Show("Vui lòng chọn phiếu xuất để 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.frmChiTietPhieuXuat frm1 = new NhapXuat.frmChiTietPhieuXuat(); customersNavigationPage.Controls.Add(frm1); navigationFrame.SelectedPageIndex = 1; navBarControl.ActiveGroup = customersNavBarGroup; Cursor.Current = Cursors.Default; }
private void btnShowPhieuXuat_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { employeesNavigationPage.Controls.Clear(); NhapXuat.frmPhieuXuat frm = new NhapXuat.frmPhieuXuat(); frm.btnDetails.Click += delegate { Cursor.Current = Cursors.WaitCursor; customersNavigationPage.Controls.Clear(); NhapXuat.frmChiTietPhieuXuat frm1 = new NhapXuat.frmChiTietPhieuXuat(); customersNavigationPage.Controls.Add(frm1); navigationFrame.SelectedPageIndex = 1; navBarControl.ActiveGroup = customersNavBarGroup; Cursor.Current = Cursors.Default; }; employeesNavigationPage.Controls.Add(frm); }