Exemple #1
0
        private void Supportbtn_Click(object sender, EventArgs e)
        {
            SupportUserControl uc = new SupportUserControl();

            if (!this.Contains(uc))
            {
                this.Controls.Add(uc);

                uc.Dock = DockStyle.Fill;
                uc.BringToFront();
            }
            else
            {
                uc.BringToFront();
            }
        }
Exemple #2
0
        private void bunifuImageButton3_Click(object sender, EventArgs e)
        {
            if (Home.internetconn == false)
            {
                MessageBox.Show("يرجى التأكد من اتصالك بالانترنت");
            }
            else
            {
                SupportUserControl uc = new SupportUserControl();
                if (!this.Contains(uc))
                {
                    this.Controls.Add(uc);

                    uc.Dock = DockStyle.Fill;
                    uc.BringToFront();
                }
                else
                {
                    uc.BringToFront();
                }
            }
        }