|
@@ -44,13 +44,19 @@ namespace WinBox
|
|
|
|
|
|
private void button2_Click(object sender, EventArgs e)
|
|
|
{
|
|
|
- this.Close();
|
|
|
- try
|
|
|
- {
|
|
|
- RunBat("C:\\Lingjiao\\winBoxNode\\stop.bat");
|
|
|
- }
|
|
|
- catch (Exception ex)
|
|
|
+ MessageBoxButtons messButton = MessageBoxButtons.OKCancel;
|
|
|
+ DialogResult dr = MessageBox.Show("如果有下载课程操作会被终止,确认要退出吗", "退出",messButton);
|
|
|
+
|
|
|
+ if (dr == DialogResult.OK)//如果点击“确定”按钮
|
|
|
{
|
|
|
+ this.Close();
|
|
|
+ try
|
|
|
+ {
|
|
|
+ RunBat("C:\\Lingjiao\\winBoxNode\\stop.bat");
|
|
|
+ }
|
|
|
+ catch (Exception ex)
|
|
|
+ {
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|