示例#1
0
 private void cancelButton_Click(object sender, EventArgs e)
 {
     if (goButton.Enabled)
     {
         Close();
     }
     else
     {
         workQueue.Abort();
     }
 }
示例#2
0
        protected void ReportError(string message)
        {
            var button = MessageBox.Show(message, "Error", MessageBoxButtons.OKCancel, MessageBoxIcon.Error);

            if (button == DialogResult.Cancel)
            {
                workQueue.Abort();
            }
        }
示例#3
0
文件: Worker.cs 项目: esskar/vss2git
        protected void ReportError(string message)
        {
            var result = messageDispatcher.Dispatch(MessageType.Error, message, MessageChoice.OkCancel);

            if (result == MessageHandleResult.Cancel)
            {
                workQueue.Abort();
            }
        }
示例#4
0
 private void cancelButton_Click(object sender, EventArgs e)
 {
     workQueue.Abort();
 }