Пример #1
0
 private void btnCreate_Click(object sender, EventArgs e)
 {
     try {
         GDMRecord rec = BaseController.AddRecord(fController.Base, fController.RecType, fController.Target);
         if (rec != null)
         {
             ResultRecord = rec;
             DialogResult = DialogResult.OK;
         }
     } catch (Exception ex) {
         Logger.WriteError("RecordSelectDlg.btnCreate_Click()", ex);
         ResultRecord = null;
         DialogResult = DialogResult.None;
     }
 }
Пример #2
0
 private void btnCreate_Click(object sender, EventArgs e)
 {
     try {
         GEDCOMRecord rec = BaseController.AddRecord(fController.Base, fController.RecType, fController.Target);
         if (rec != null)
         {
             ResultRecord = rec;
             DialogResult = DialogResult.Ok;
         }
     } catch (Exception ex) {
         Logger.LogWrite("RecordSelectDlg.btnCreate_Click(): " + ex.Message);
         ResultRecord = null;
         DialogResult = DialogResult.None;
     }
 }