示例#1
0
 private void FrmMain_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (this.isRun)
     {
         e.Cancel = true;
     }
     if (!e.Cancel)
     {
         if (MessageBox.Show("确定要退出程序吗?", "系统信息", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != DialogResult.OK)
         {
             e.Cancel = true;
         }
     }
     //删除操作中生成的临时文件
     op.DeleteOperateFileDirectory();
 }