Example #1
0
        //taswaya customer
        public void bindTaswayaCustomersForm(string customerType, string customerID, string clientID)
        {
            if (!xtraTabControlSalesContent.Visible)
            {
                xtraTabControlSalesContent.Visible = true;
            }

            XtraTabPage xtraTabPage = getTabPage("تسوية عميل");

            if (xtraTabPage == null)
            {
                xtraTabControlSalesContent.TabPages.Add("تسوية عميل");
                xtraTabPage = getTabPage("تسوية عميل");
            }
            xtraTabPage.Controls.Clear();
            xtraTabControlSalesContent.SelectedTabPage = xtraTabPage;

            CustomerTaswaya objForm = new CustomerTaswaya(customerType, customerID, clientID);

            objForm.TopLevel = false;
            xtraTabPage.Controls.Add(objForm);
            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
Example #2
0
        private void btnCustomerTaswaya_LinkClicked(object sender, NavBarLinkEventArgs e)
        {
            try
            {
                if (!xtraTabControlSalesContent.Visible)
                {
                    xtraTabControlSalesContent.Visible = true;
                }

                XtraTabPage xtraTabPage = getTabPage("تسوية عميل");
                if (xtraTabPage == null)
                {
                    xtraTabControlSalesContent.TabPages.Add("تسوية عميل");
                    xtraTabPage = getTabPage("تسوية عميل");
                }
                xtraTabPage.Controls.Clear();
                xtraTabControlSalesContent.SelectedTabPage = xtraTabPage;

                CustomerTaswaya objForm = new CustomerTaswaya();
                objForm.TopLevel = false;
                xtraTabPage.Controls.Add(objForm);
                objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                objForm.Dock            = DockStyle.Fill;
                objForm.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }