コード例 #1
0
 private void RequestTask_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (_Running)
     {
         MessageBox.Show("Stop before exit", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         e.Cancel = true;
         return;
     }
     TaskController.CadmExit();
 }