private void button1_Click(object sender, EventArgs e) { //frm_english_practice eng_prac = new frm_english_practice(); //eng_prac.Show(); //frm_marathi_practice mar_prac = new frm_marathi_practice(); //mar_prac.Show(); if (lbx_chapter.SelectedIndex == -1) { my_messagebox m = new my_messagebox("Select Chapter"); m.ShowDialog(); //MessageBox.Show("Select Chapter"); lbx_chapter.Focus(); goto abc; } Globle_data.chapter = lbx_chapter.Text; if (optenglish.Checked == true) { frm_english_practice eng_prac = new frm_english_practice(); eng_prac.Show(); } if (opthindi.Checked == true) { frm_hindi_practice hindi_prac = new frm_hindi_practice(); hindi_prac.Show(); } if (optmarathi.Checked == true) { frm_marathi_practice mar_prac = new frm_marathi_practice(); mar_prac.Show(); } abc :; }
private void btn_start_practice_session_Click(object sender, EventArgs e) { if (lbx_chapter.SelectedIndex == -1) { my_messagebox m = new my_messagebox("Select Chapter"); m.ShowDialog(); //MessageBox.Show("Select Chapter"); lbx_chapter.Focus(); goto abc; } Globle_data.chapter = lbx_chapter.Text; if (opt30.Checked == true) { Globle_data.speed = "30"; } if (opt40.Checked == true) { Globle_data.speed = "40"; } if (optenglish.Checked == true) { Globle_data.language = "English"; frm_english_practice eng_prac = new frm_english_practice(); eng_prac.Show(); this.Hide(); } if (opthindi.Checked == true) { Globle_data.language = "Hindi"; frm_hindi_practice hindi_prac = new frm_hindi_practice(); hindi_prac.Show(); this.Hide(); } if (optmarathi.Checked == true) { Globle_data.language = "Marathi"; frm_marathi_practice mar_prac = new frm_marathi_practice(); mar_prac.Show(); this.Hide(); } abc :; }