Exemplo n.º 1
0
 /// <summary>
 /// Log exception
 /// </summary>
 /// <param name="ex"></param>
 protected void LogException(Exception ex)
 {
     if (ex.Message.Contains("No Printer tray selected for the Print media type"))
     {
         timer.Dispose();
         this.Hide();
         Console.WriteLine(ex.StackTrace);
         FormException form = new FormException(ex);
         form.ShowDialog();
         config = new FormConfig(sessionId);
         config.ShowDialog(this);
     }
     else if (ex.Message == "Non Zero Error code received from the Server. Error COde ")
     {
         timer.Dispose();
         Console.WriteLine(ex.StackTrace);
         FormException form = new FormException(ex);
         form.ShowDialog();
     }
 }