private void button1_Click(object sender, EventArgs e) { int check = 1; if (radioButton2.Checked) check = 2; if (radioButton3.Checked) check = 3; string str = textBox1.Text; if (str != "") { this.Hide(); add dd = new add(0, check, str); dd.ShowDialog(); this.Show(); } }
//Admin git the lesson name and add the lessons tasks// private void nextBtn_Click(object sender, EventArgs e) { int check = 1; if (mediumRBtn.Checked) check = 2; if (hardRBtn.Checked) check = 3; string str = lessonNameTxt.Text; if (str != "") { this.Hide(); add dd = new add(0, check, str); dd.ShowDialog(); this.Show(); } }