示例#1
0
 private void btnLeft_Click(object sender, System.EventArgs e)
 {
     if ((currentMessage.BtnList.Left == ErrorButton.Stop) &&
         ((MessageBox.Show("Do you really want to STOP the RUN Process immediately?", "Stop Run Process Immediately", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.No)))
     {
         return;
     }
     Services.ServiceManager.ErrorHandler.LastHandledMessage = currentMessage;
     currentMessage.ButtonSelected = currentMessage.BtnList.Left;
     currentMessage.OnInput();
 }
示例#2
0
 private void Close()
 {
     ServiceManager.ErrorHandler.UnRegisterMessage(message);
     message.OnInput();
 }