Пример #1
0
        /*      private void pictureBoxBell_Click(object sender, EventArgs e)
         * {
         * try
         * {
         *     XtraTabPage xtraTabPagePS =getTabPage(xtraTabControlPointSale,"xtraTabPagePointSale");
         *     if (xtraTabPagePS == null)
         *     {
         *         xtraTabControlMain.TabPages.Add(xtraTabPagePointSale);
         *
         *         xtraTabControlMain.SelectedTabPage = xtraTabPagePointSale;
         *     }
         *     XtraTabPage xtraTabPage =getTabPage(xtraTabControlPointSale,"tabPageProductsDetailsReport");
         *     //if (xtraTabPage == null)
         *     //{
         *     tabPageProductsDetailsReport.Name = "tabPageProductsDetailsReport";
         *     tabPageProductsDetailsReport.Text = "تفاصيل فاتورة";
         *     panelProductsDetailsReport.Name = "panelProductsDetailsReport";
         *     panelProductsDetailsReport.Dock = DockStyle.Fill;
         *
         *     ProductsDetailsReport = new ProductsDetails_Report(this, delegateID, billNum);
         *     ProductsDetailsReport.Size = new Size(1109, 660);
         *     ProductsDetailsReport.TopLevel = false;
         *     ProductsDetailsReport.FormBorderStyle = FormBorderStyle.None;
         *     ProductsDetailsReport.Dock = DockStyle.Fill;
         *     //}
         *     panelProductsDetailsReport.Controls.Clear();
         *     panelProductsDetailsReport.Controls.Add(ProductsDetailsReport);
         *     tabPageProductsDetailsReport.Controls.Add(panelProductsDetailsReport);
         *     xtraTabControlPointSale.TabPages.Add(tabPageProductsDetailsReport);
         *     ProductsDetailsReport.Show();
         *     xtraTabControlPointSale.SelectedTabPage = tabPageProductsDetailsReport;
         *     //}
         *     //else
         *     //{
         *     //    xtraTabControlPointSale.SelectedTabPage = tabPageProductsDetailsReport;
         *     //}
         * }
         * catch (Exception ex)
         * {
         *     MessageBox.Show(ex.Message);
         * }
         * }
         */

        private void navBarItemConfirmBill_LinkClicked(object sender, NavBarLinkEventArgs e)
        {
            try
            {
                restForeColorOfNavBarItem();
                NavBarItem navBarItem = (NavBarItem)sender;
                navBarItem.Appearance.ForeColor = Color.FromArgb(54, 70, 151);

                XtraTabPage xtraTabPage = getTabPage(xtraTabControlPointSale, "tabPageBillConfirm");
                if (xtraTabPage == null)
                {
                    tabPageBillConfirm.Name = "tabPageBillConfirm";
                    tabPageBillConfirm.Text = "تاكيد فاتورة";
                    panelBillConfirm.Name   = "panelBillConfirm";
                    panelBillConfirm.Dock   = DockStyle.Fill;

                    BillConfirm                 = new Bill_Confirm();
                    BillConfirm.Size            = new Size(1109, 660);
                    BillConfirm.TopLevel        = false;
                    BillConfirm.FormBorderStyle = FormBorderStyle.None;
                    BillConfirm.Dock            = DockStyle.Fill;
                }
                panelBillConfirm.Controls.Clear();
                panelBillConfirm.Controls.Add(BillConfirm);
                tabPageBillConfirm.Controls.Add(panelBillConfirm);
                xtraTabControlPointSale.TabPages.Add(tabPageBillConfirm);
                BillConfirm.Show();
                xtraTabControlPointSale.SelectedTabPage = tabPageBillConfirm;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Пример #2
0
        //confirm bill
        public void bindDisplayConfirmBillForm(XtraTabPage xtraTabPage)
        {
            objFormBillConfirm          = new Bill_Confirm();
            objFormBillConfirm.TopLevel = false;

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