Example #1
0
 public void SaveData()
 {
     // Dont save if there is a problem with duplicate names
     if (!Settings.smethod_50(this.Node, this.txtName.Text))
     {
         try
         {
             int index = Convert.ToInt32(base.Tag);
             if (index == -1)
             {
                 return;
             }
             if (this.txtName.Focused)
             {
                 this.txtName_Leave(this.txtName, null);
             }
             ContactOne value = new ContactOne(index);
             value.Name              = this.txtName.Text;
             value.CallId            = this.txtCallId.Text;
             value.CallType          = this.cmbCallType.method_3();
             value.CallRxTone        = this.chkCallRxTone.Checked;
             value.RingStyle         = this.cmbRingStyle.SelectedIndex;
             ContactForm.data[index] = value;
             ((MainForm)base.MdiParent).RefreshRelatedForm(base.GetType());
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message);
         }
     }
 }
Example #2
0
 public void SaveData()
 {
     try
     {
         int index = Convert.ToInt32(base.Tag);
         if (this.txtName.Focused)
         {
             this.txtName_Leave(this.txtName, null);
         }
         ContactOne value = new ContactOne(index);
         value.Name              = this.txtName.Text;
         value.CallId            = this.txtCallId.Text;
         value.CallType          = this.cmbCallType.method_3();
         value.CallRxTone        = this.chkCallRxTone.Checked;
         value.RingStyle         = this.cmbRingStyle.SelectedIndex;
         ContactForm.data[index] = value;
         ((MainForm)base.MdiParent).RefreshRelatedForm(base.GetType());
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Example #3
0
 private static bool smethod_1(ContactOne contactOne_0)
 {
     return(contactOne_0.Name != "");
 }
Example #4
0
 private static bool smethod_0(ContactOne contactOne_0)
 {
     return(contactOne_0.CallType == 2);
 }