Exemplo n.º 1
0
        public void bindRecordDashOrderForm(DashOrder_Report DashOrderReport, List <DataRow> row1 /*, int SpecialOrderId*/)
        {
            if (!xtraTabControlRequests.Visible)
            {
                xtraTabControlRequests.Visible = true;
            }

            XtraTabPage xtraTabPage = getTabPage(xtraTabControlRequests, "اضافة طلب مؤقت");

            if (xtraTabPage == null)
            {
                xtraTabControlRequests.TabPages.Add("اضافة طلب مؤقت");
                xtraTabPage = getTabPage(xtraTabControlRequests, "اضافة طلب مؤقت");
            }
            xtraTabPage.Controls.Clear();

            xtraTabControlRequests.SelectedTabPage = xtraTabPage;
            //List<DataRow> row1 = new List<DataRow>();
            DashOrder_Record objForm = new DashOrder_Record(row1, DashOrderReport, xtraTabControlRequests /*, SpecialOrderId*/);

            objForm.TopLevel = false;

            xtraTabPage.Controls.Add(objForm);
            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
Exemplo n.º 2
0
        public void bindDisplayDashOrderReportForm(XtraTabPage xtraTabPage)
        {
            DashOrder_Report objForm = new DashOrder_Report(this, xtraTabControlRequests);

            objForm.TopLevel = false;

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