예제 #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();
        }