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); } }
private void RaiseErrorEvent(PrintErrorType arg) { OnError?.Invoke(arg); StatusRequestTimer?.Abort(); }