//开始学习 private void button28_Click(object sender, EventArgs e) { Form_navigation form_navigation = new Form_navigation(); form_navigation.MessageSent += delegate(object caller, string msg, string msg2) { form_navigation_name = msg; sww_nag = new StreamWriter("E:\\" + form_navigation_name + ".txt", false); }; if (button28.Text == "开始学习") { form_navigation.ShowDialog(); button28.Text = "结束学习"; timer3.Start(); is_sww_nag = true; } else { button28.Text = "开始学习"; timer3.Stop(); sww_nag.Close(); is_sww_nag = false; } }
//开始学习 private void button28_Click(object sender, EventArgs e) { Form_navigation form_navigation = new Form_navigation(); form_navigation.MessageSent += delegate(object caller, string msg, string msg2) { form_navigation_name = msg; sww_nag = new StreamWriter("E:\\" + form_navigation_name + ".txt", false); }; if (button28.Text == "开始学习") { form_navigation.ShowDialog(); button28.Text = "结束学习"; timer3.Start(); is_sww_nag = true; } else { button28.Text = "开始学习"; timer3.Stop(); sww_nag.Close(); is_sww_nag = false; } }