Exemplo n.º 1
0
 public PurchaseBill_Update(PurchaseBill_Report PurchaseBillReport, DataRow sellrow)
 {
     InitializeComponent();
     conn = new MySqlConnection(connection.connectionString);
     purchaseBillReport = PurchaseBillReport;
     sellRow            = sellrow;
 }
Exemplo n.º 2
0
        private void navBarItemPurchaseBillPriceUpdate_LinkClicked(object sender, NavBarLinkEventArgs e)
        {
            try
            {
                //if (UserControl.userType == 10 || UserControl.userType == 17 || UserControl.userType == 1)
                //{
                restForeColorOfNavBarItem();
                NavBarItem navBarItem = (NavBarItem)sender;
                navBarItem.Appearance.ForeColor = Color.Blue;
                if (!xtraTabControlPurchases.Visible)
                {
                    xtraTabControlPurchases.Visible = true;
                }

                XtraTabPage xtraTabPage = getTabPage(xtraTabControlPurchases, "عرض فواتير الشراء");
                if (xtraTabPage == null)
                {
                    xtraTabControlPurchases.TabPages.Add("عرض فواتير الشراء");
                    xtraTabPage = getTabPage(xtraTabControlPurchases, "عرض فواتير الشراء");
                }

                xtraTabPage.Controls.Clear();
                xtraTabControlPurchases.SelectedTabPage = xtraTabPage;

                PurchaseBill_Report objForm = new PurchaseBill_Report(this, xtraTabControlPurchases);

                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);
            }
        }