Пример #1
0
 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);
     }
 }
Пример #2
0
 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);
     }
 }
Пример #3
0
        internal static void ShowApplicationCrashedException(Exception ex)
        {
            var form = new NotifyForm(MessageType.ApplicationCrashed, ex);

            form.ShowDialog();
        }
Пример #4
0
        internal static void ShowNotification(string message)
        {
            var form = new NotifyForm(message);

            form.ShowDialog();
        }