Пример #1
0
        private void navBarItemCustomerShow_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            try
            {
                restForeColorOfNavBarItem();
                NavBarItem navBarItem = (NavBarItem)sender;
                navBarItem.Appearance.ForeColor = Color.FromArgb(54, 70, 151);

                XtraTabPage xtraTabPage = getTabPage(xtraTabControlPointSale, "tabPageCustomerReport");
                if (xtraTabPage == null)
                {
                    tabPageCustomerReport.Name = "tabPageCustomerReport";
                    tabPageCustomerReport.Text = "عرض العملاء";
                    panelCustomerReport.Name   = "panelCustomerReport";
                    panelCustomerReport.Dock   = DockStyle.Fill;

                    CustomerReport                 = new Customer_Report();
                    CustomerReport.Size            = new Size(1109, 660);
                    CustomerReport.TopLevel        = false;
                    CustomerReport.FormBorderStyle = FormBorderStyle.None;
                    CustomerReport.Dock            = DockStyle.Fill;
                }
                panelCustomerReport.Controls.Clear();
                panelCustomerReport.Controls.Add(CustomerReport);
                tabPageCustomerReport.Controls.Add(panelCustomerReport);
                xtraTabControlPointSale.TabPages.Add(tabPageCustomerReport);
                CustomerReport.Show();
                xtraTabControlPointSale.SelectedTabPage = tabPageCustomerReport;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Пример #2
0
        //customers
        public void bindDisplayCustomersForm(XtraTabPage xtraTabPage)
        {
            objFormCustomer          = new Customer_Report();
            objFormCustomer.TopLevel = false;

            xtraTabPage.Controls.Add(objFormCustomer);
            objFormCustomer.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objFormCustomer.Dock            = DockStyle.Fill;
            objFormCustomer.Show();
        }