public void bindRecordDashRequestForm(DashRequest_Report DashOrderReport, List <DataRow> row1)
        {
            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;
            DashRequest_Record objForm = new DashRequest_Record(DashOrderReport, xtraTabControlRequests);

            objForm.TopLevel = false;

            xtraTabPage.Controls.Add(objForm);
            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
Beispiel #2
0
 public DashRequest_Record(DashRequest_Report OrderReport, XtraTabControl xtraTabControlPurchases)
 {
     InitializeComponent();
     dbconnection  = new MySqlConnection(connection.connectionString);
     dbconnection2 = new MySqlConnection(connection.connectionString);
     dbconnection3 = new MySqlConnection(connection.connectionString);
 }
        public void bindDisplayDashRequestReportForm(XtraTabPage xtraTabPage)
        {
            DashRequest_Report objForm = new DashRequest_Report(this, xtraTabControlRequests);

            objForm.TopLevel = false;

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