internal static void ShowUnknownException(Exception ex) { try { if (ex != null) { var form = new NotifyForm(MessageType.UnknownError, ex); form.ShowDialog(); } else { throw new Exception("Unidentified exception"); } } catch (Exception ex2) { Log.LogError(ex2.Message, ex2.StackTrace); } }
internal static void ShowError(Exception ex, MessageType messageType) { try { if (messageType == MessageType.MissingObjectsInfo || messageType == MessageType.NoMappingDataInfo) { var form = new NotifyForm(messageType); form.ShowDialog(); } else if (ex != null) { var form = new NotifyForm(messageType, ex); form.ShowDialog(); } else { throw new Exception("Unidentified exception"); } } catch (Exception ex2) { Log.LogError(ex2.Message, ex2.StackTrace); } }
internal static void ShowApplicationCrashedException(Exception ex) { var form = new NotifyForm(MessageType.ApplicationCrashed, ex); form.ShowDialog(); }
internal static void ShowNotification(string message) { var form = new NotifyForm(message); form.ShowDialog(); }