コード例 #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;
 }
コード例 #2
0
ファイル: Offer_Collect.cs プロジェクト: ayaRayan93/CCCSystem
 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);
     }
 }
コード例 #3
0
ファイル: SalesSystem.cs プロジェクト: ayaRayan93/CCCSystem
        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();
            }
        }
コード例 #4
0
ファイル: SalesSystem.cs プロジェクト: ayaRayan93/CCCSystem
        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);
            }
        }