コード例 #1
0
ファイル: BankSystem.cs プロジェクト: ayaRayan93/TaxesSystem
        private void navBarItemDepositCash_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            try
            {
                restForeColorOfNavBarItem();
                NavBarItem navBarItem = (NavBarItem)sender;
                navBarItem.Appearance.ForeColor = Color.FromArgb(54, 70, 151);

                XtraTabPage xtraTabPage = getTabPage(MainTabControlBank, "tabPageDepositCashReport");
                if (xtraTabPage == null)
                {
                    tabPageDepositCashReport.Name = "tabPageDepositCashReport";
                    tabPageDepositCashReport.Text = "عرض الايداعات-كاش";
                    panelDepositCashReport.Name   = "panelDepositCashReport";
                    panelDepositCashReport.Dock   = DockStyle.Fill;

                    DepositCashShow                 = new BankDepositCash_Report(this);
                    DepositCashShow.Size            = new Size(1109, 660);
                    DepositCashShow.TopLevel        = false;
                    DepositCashShow.FormBorderStyle = FormBorderStyle.None;
                    DepositCashShow.Dock            = DockStyle.Fill;
                }
                panelDepositCashReport.Controls.Clear();
                panelDepositCashReport.Controls.Add(DepositCashShow);
                tabPageDepositCashReport.Controls.Add(panelDepositCashReport);
                MainTabControlBank.TabPages.Add(tabPageDepositCashReport);
                DepositCashShow.Show();
                MainTabControlBank.SelectedTabPage = tabPageDepositCashReport;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
コード例 #2
0
ファイル: BankSystem.cs プロジェクト: ayaRayan93/TaxesSystem
        public void bindUpdateDepositCashForm(DataRowView sellRow, BankDepositCash_Report form)
        {
            BankDepositCash_Update objForm = new BankDepositCash_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();
        }
コード例 #3
0
ファイル: BankSystem.cs プロジェクト: ayaRayan93/TaxesSystem
        public void bindRecordDepositCashForm(BankDepositCash_Report form)
        {
            BankDepositCash_Record objForm = new BankDepositCash_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();
        }