private void navBarItemPullCash_LinkClicked(object sender, NavBarLinkEventArgs e) { try { restForeColorOfNavBarItem(); NavBarItem navBarItem = (NavBarItem)sender; navBarItem.Appearance.ForeColor = Color.FromArgb(54, 70, 151); XtraTabPage xtraTabPage = getTabPage(MainTabControlBank, "tabPagePullCashReport"); if (xtraTabPage == null) { tabPagePullCashReport.Name = "tabPagePullCashReport"; tabPagePullCashReport.Text = "عرض السحوبات-كاش"; panelPullCashReport.Name = "panelPullCashReport"; panelPullCashReport.Dock = DockStyle.Fill; PullCashShow = new BankPullCash_Report(this); PullCashShow.Size = new Size(1109, 660); PullCashShow.TopLevel = false; PullCashShow.FormBorderStyle = FormBorderStyle.None; PullCashShow.Dock = DockStyle.Fill; } panelPullCashReport.Controls.Clear(); panelPullCashReport.Controls.Add(PullCashShow); tabPagePullCashReport.Controls.Add(panelPullCashReport); MainTabControlBank.TabPages.Add(tabPagePullCashReport); PullCashShow.Show(); MainTabControlBank.SelectedTabPage = tabPagePullCashReport; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public void bindUpdatePullCashForm(DataRowView sellRow, BankPullCash_Report form) { BankPullCash_Update objForm = new BankPullCash_Update(sellRow, form, MainTabControlBank); objForm.TopLevel = false; XtraTabPage xtraTabPage = getTabPage(MainTabControlBank, "تعديل مرتد-كاش"); if (xtraTabPage == null) { MainTabControlBank.TabPages.Add("تعديل مرتد-كاش"); xtraTabPage = getTabPage(MainTabControlBank, "تعديل مرتد-كاش"); } xtraTabPage.Controls.Clear(); xtraTabPage.Controls.Add(objForm); MainTabControlBank.SelectedTabPage = xtraTabPage; objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; objForm.Dock = DockStyle.Fill; objForm.Show(); }
public void bindRecordPullCashForm(BankPullCash_Report form) { BankPullCash_Record objForm = new BankPullCash_Record(form, MainTabControlBank); objForm.TopLevel = false; XtraTabPage xtraTabPage = getTabPage(MainTabControlBank, "اضافة مرتد-كاش"); if (xtraTabPage == null) { MainTabControlBank.TabPages.Add("اضافة مرتد-كاش"); xtraTabPage = getTabPage(MainTabControlBank, "اضافة مرتد-كاش"); xtraTabPage.Controls.Clear(); xtraTabPage.Controls.Add(objForm); } MainTabControlBank.SelectedTabPage = xtraTabPage; objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; objForm.Dock = DockStyle.Fill; objForm.Show(); }