Ejemplo n.º 1
0
 private void buttonAdd_Click(object sender, EventArgs e)
 {
     try
     {
         var r = GetFromForm();
         if (curr == null)
         {
             facade.AddRecordMail_Validating(FileInMemory, r);
         }
         else
         {
             r.Id     = curr.Id;
             r.Attach = curr.Attach;
             facade.UpdateRecordMail_Validating(FileInMemory, r);
         }
         Clear();
     }
     catch (ValidatingException ex)
     {
         Msg.ShowException(ex);
     }
 }