コード例 #1
0
 public SetFak(AtaqmStorage AtaqmStorage)
 {
     InitializeComponent();
     dbconnection      = new MySqlConnection(connection.connectionString);
     dbconnection1     = new MySqlConnection(connection.connectionString);
     dbconnection2     = new MySqlConnection(connection.connectionString);
     this.AtaqmStorage = AtaqmStorage;
 }
コード例 #2
0
        //sets Storage
        public void bindDisplaySetsStorageForm(XtraTabPage xtraTabPage)
        {
            AtaqmStorage objForm = new AtaqmStorage(this);

            objForm.TopLevel = false;

            xtraTabPage.Controls.Add(objForm);
            objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            objForm.Dock            = DockStyle.Fill;
            objForm.Show();
        }
コード例 #3
0
 public SetTagame3(AtaqmStorage AtaqmStorage)
 {
     try
     {
         InitializeComponent();
         dbconnection      = new MySqlConnection(connection.connectionString);
         dbconnection1     = new MySqlConnection(connection.connectionString);
         dbconnection2     = new MySqlConnection(connection.connectionString);
         this.AtaqmStorage = AtaqmStorage;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
コード例 #4
0
        public void bindFakSetForm(AtaqmStorage ataqm)
        {
            SetFak objForm = new SetFak(ataqm);

            objForm.TopLevel = false;
            XtraTabPage xtraTabPage = getTabPage(xtraTabControlStoresContent, "فك طقم");

            if (xtraTabPage == null)
            {
                xtraTabControlStoresContent.TabPages.Add("فك طقم");
                xtraTabPage = getTabPage(xtraTabControlStoresContent, "فك طقم");
                xtraTabPage.Controls.Clear();
                xtraTabPage.Controls.Add(objForm);
                xtraTabControlStoresContent.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);
                    xtraTabControlStoresContent.SelectedTabPage = xtraTabPage;
                    objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                    objForm.Dock            = DockStyle.Fill;
                    objForm.Show();
                }
                else if (dialogResult == DialogResult.No)
                {
                    xtraTabControlStoresContent.SelectedTabPage = xtraTabPage;
                }
            }
            else
            {
                xtraTabPage.Controls.Clear();
                xtraTabPage.Controls.Add(objForm);
                xtraTabControlStoresContent.SelectedTabPage = xtraTabPage;
                objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                objForm.Dock            = DockStyle.Fill;
                objForm.Show();
            }
        }
コード例 #5
0
        //Ataqm Tagame3
        private void navBarItemAtaqmTagame3_LinkClicked(object sender, NavBarLinkEventArgs e)
        {
            try
            {
                restForeColorOfNavBarItem();
                NavBarItem navBarItem = (NavBarItem)sender;
                navBarItem.Appearance.ForeColor = Color.Blue;
                if (!xtraTabControlStoresContent.Visible)
                {
                    xtraTabControlStoresContent.Visible = true;
                }

                XtraTabPage xtraTabPage = getTabPage(xtraTabControlStoresContent, "تسجيل كميات الاطقم");
                if (xtraTabPage == null)
                {
                    xtraTabControlStoresContent.TabPages.Add("تسجيل كميات الاطقم");
                    xtraTabPage = getTabPage(xtraTabControlStoresContent, "تسجيل كميات الاطقم");
                }

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

                AtaqmStorage objForm = new AtaqmStorage(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);
            }
        }