Exemplo n.º 1
0
 public Offer_Fak(OfferStorage OfferStorage)
 {
     InitializeComponent();
     dbconnection  = new MySqlConnection(connection.connectionString);
     dbconnection1 = new MySqlConnection(connection.connectionString);
     dbconnection2 = new MySqlConnection(connection.connectionString);
     offerStorage  = OfferStorage;
 }
Exemplo n.º 2
0
 public Offer_Collect(OfferStorage OfferStorage)
 {
     try
     {
         InitializeComponent();
         dbconnection      = new MySqlConnection(connection.connectionString);
         dbconnection1     = new MySqlConnection(connection.connectionString);
         dbconnection2     = new MySqlConnection(connection.connectionString);
         this.offerStorage = OfferStorage;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Exemplo n.º 3
0
        public void bindFakOfferForm(OfferStorage offer)
        {
            Offer_Fak objForm = new Offer_Fak(offer);

            objForm.TopLevel = false;
            XtraTabPage xtraTabPage = getTabPage(xtraTabControlSalesContent, "فك عرض");

            if (xtraTabPage == null)
            {
                xtraTabControlSalesContent.TabPages.Add("فك عرض");
                xtraTabPage = getTabPage(xtraTabControlSalesContent, "فك عرض");
                xtraTabPage.Controls.Clear();
                xtraTabPage.Controls.Add(objForm);
                xtraTabControlSalesContent.SelectedTabPage = xtraTabPage;
                objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                objForm.Dock            = DockStyle.Fill;
                objForm.Show();
            }
            else if (xtraTabPage.ImageOptions.Image != null)
            {
                DialogResult dialogResult = MessageBox.Show("There is unsave data To you wound override it?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                if (dialogResult == DialogResult.Yes)
                {
                    xtraTabPage.Controls.Clear();
                    xtraTabPage.Controls.Add(objForm);
                    xtraTabControlSalesContent.SelectedTabPage = xtraTabPage;
                    objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                    objForm.Dock            = DockStyle.Fill;
                    objForm.Show();
                }
                else if (dialogResult == DialogResult.No)
                {
                    xtraTabControlSalesContent.SelectedTabPage = xtraTabPage;
                }
            }
            else
            {
                xtraTabPage.Controls.Clear();
                xtraTabPage.Controls.Add(objForm);
                xtraTabControlSalesContent.SelectedTabPage = xtraTabPage;
                objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                objForm.Dock            = DockStyle.Fill;
                objForm.Show();
            }
        }
Exemplo n.º 4
0
        private void navBarItemOfferStorage_LinkClicked(object sender, NavBarLinkEventArgs e)
        {
            try
            {
                restForeColorOfNavBarItem();
                NavBarItem navBarItem = (NavBarItem)sender;
                navBarItem.Appearance.ForeColor = Color.Blue;
                if (!xtraTabControlSalesContent.Visible)
                {
                    xtraTabControlSalesContent.Visible = true;
                }

                XtraTabPage xtraTabPage = getTabPage(xtraTabControlSalesContent, "تسجيل كميات العروض");
                if (xtraTabPage == null)
                {
                    xtraTabControlSalesContent.TabPages.Add("تسجيل كميات العروض");
                    xtraTabPage = getTabPage(xtraTabControlSalesContent, "تسجيل كميات العروض");
                }

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

                OfferStorage objForm = new OfferStorage(this);

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