Esempio n. 1
0
        private void pbQuestionReg_Click(object sender, EventArgs e)
        {
            InsertQuestion insert = new InsertQuestion();

            insert.Show();
            this.Close();
        }
Esempio n. 2
0
        private void lblInsertQuestion_Click(object sender, EventArgs e)
        {
            if (MasterPanel.Controls[0] is InsertQuestion)
            {
                return;
            }
            mainPanel.Hide();
            lblTitle.Text = "طرح سوال";

            if (MasterPanel.Controls.Count > 1)
            {
                MasterPanel.Controls.RemoveAt(1);
            }
            var content = new InsertQuestion();

            content.Dock = DockStyle.Fill;
            MasterPanel.Controls.Add(content);
        }