Example #1
0
 private void PrintMaster_OnError(PrintErrorType arg)
 {
     if (InvokeRequired)
     {
         var d = new PrintErrorEventHandler(PrintMaster_OnError);
         Invoke(d, arg);
     }
     else
     {
         MessageBox.Show(
             string.Format(TB.L.Phrase["Form_PrintMaster.ErrorText"],
                           arg.GetType().FullName,
                           //ex.StackTrace,
                           "null",
                           arg.ToString()),
             TB.L.Phrase["Connection.Error"],
             MessageBoxButtons.OK, MessageBoxIcon.Error);
         printMaster.Master.CloseConnection();
         tabControl1.SelectedIndex = 4;
         CheckState(4);
     }
 }
Example #2
0
 private void RaiseErrorEvent(PrintErrorType arg)
 {
     OnError?.Invoke(arg);
     StatusRequestTimer?.Abort();
 }