Пример #1
0
            //Ataqm Tagame3
            private void navBarItem3_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("تسجيل كميات الاطقم");
                    if (xtraTabPage == null)
                    {
                        xtraTabControlStoresContent.TabPages.Add("تسجيل كميات الاطقم");
                        xtraTabPage = getTabPage("تسجيل كميات الاطقم");
                    }

                    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);
                }
        }
Пример #2
0
 public SetFak(AtaqmStorage AtaqmStorage)
 {
     InitializeComponent();
     dbconnection      = new MySqlConnection(connection.connectionString);
     dbconnection1     = new MySqlConnection(connection.connectionString);
     dbconnection2     = new MySqlConnection(connection.connectionString);
     this.AtaqmStorage = AtaqmStorage;
 }
Пример #3
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();
        }
Пример #4
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);
     }
 }
Пример #5
0
        public void bindFakSetForm( AtaqmStorage ataqm)
        {
            SetFak objForm = new SetFak(ataqm);
            objForm.TopLevel = false;
            XtraTabPage xtraTabPage = getTabPage("فك طقم");
            if (xtraTabPage == null)
            {
                xtraTabControlStoresContent.TabPages.Add("فك طقم");
                xtraTabPage = getTabPage("فك طقم");
                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();
            }

        }