Ejemplo n.º 1
0
        private void navBarItemPullAgl_LinkClicked(object sender, NavBarLinkEventArgs e)
        {
            try
            {
                restForeColorOfNavBarItem();
                NavBarItem navBarItem = (NavBarItem)sender;
                navBarItem.Appearance.ForeColor = Color.FromArgb(54, 70, 151);

                XtraTabPage xtraTabPage = getTabPage(MainTabControlBank, "tabPagePullAglReport");
                if (xtraTabPage == null)
                {
                    tabPagePullAglReport.Name = "tabPagePullAglReport";
                    tabPagePullAglReport.Text = "عرض السحوبات-آجل";
                    panelPullAglReport.Name   = "panelPullAglReport";
                    panelPullAglReport.Dock   = DockStyle.Fill;

                    PullAglShow                 = new BankPullAgl_Report(this);
                    PullAglShow.Size            = new Size(1109, 660);
                    PullAglShow.TopLevel        = false;
                    PullAglShow.FormBorderStyle = FormBorderStyle.None;
                    PullAglShow.Dock            = DockStyle.Fill;
                }
                panelPullAglReport.Controls.Clear();
                panelPullAglReport.Controls.Add(PullAglShow);
                tabPagePullAglReport.Controls.Add(panelPullAglReport);
                MainTabControlBank.TabPages.Add(tabPagePullAglReport);
                PullAglShow.Show();
                MainTabControlBank.SelectedTabPage = tabPagePullAglReport;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Ejemplo n.º 2
0
        public void bindUpdatePullAglForm(DataRowView sellRow, BankPullAgl_Report form)
        {
            BankPullAgl_Update objForm = new BankPullAgl_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();
        }
Ejemplo n.º 3
0
        public void bindRecordPullAglForm(BankPullAgl_Report form)
        {
            BankPullAgl_Record objForm = new BankPullAgl_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();
        }