Example #1
0
 public static void Show(Exception ex)
 {
     FE f = new FE("Aviso", ex.Message, ex.StackTrace);
     f.ShowDialog();
 }
Example #2
0
 public static void Show(string message, string title, string details)
 {
     FE f = new FE(title, message, details);
     f.ShowDialog();
 }
Example #3
0
 public static void Show(string message, string title, Exception ex)
 {
     FE f = new FE(title, message, ex.Message + " StackTrace " + ex.StackTrace);
     f.ShowDialog();
 }
Example #4
0
 public int ImportaLinha(string sql)
 {
     SqlCeCommand cmd = null;
     int rowsAffected = -1;
     cmd = new SqlCeCommand(sql, Con);
     try
     {
         rowsAffected = cmd.ExecuteNonQuery();
     }
     catch (Exception ex)
     {
         DadoImportacao.ErrosQtd++;
         DadoImportacao.LogGrava("Erro: " + sql + Environment.NewLine + ex.Message);
         FE f = new FE("Erro importando do store: ", sql + Environment.NewLine + ex.Message);
         f.ShowDialog();
         throw new Exception("Erro: " + sql + Environment.NewLine + ex.Message);
     }
     return rowsAffected;
 }