Esempio n. 1
0
        /// <summary>
        /// New Item
        /// </summary>
        private void NewItemContacts()
        {
            frmEditContacts form = new frmEditContacts();
            var             res  = form.ShowDialog();       // Show Edit form

            while (res == DialogResult.Yes)                 // If New item request
            {
                form.Dispose();
                form = new frmEditContacts();               // New Form
                res  = form.ShowDialog();                   // Show new Edit form
            }
            UpdateConOLV();                                 // Update Contact OLV
        }
Esempio n. 2
0
 /// <summary>
 /// Edit Item
 /// </summary>
 private void EditItemContacts()
 {
     if (olvContacts.SelectedIndex >= 0)                 // If selected Item
     {
         frmEditContacts form = new frmEditContacts();   // Show Edit form
         var             res  = form.ShowDialog(((Contacts)olvContacts.SelectedObject).ID);
         while (res == DialogResult.Yes)                 // If New item request
         {
             form.Dispose();
             form = new frmEditContacts();               // New Form
             res  = form.ShowDialog();                   // Show new Edit form
         }
         UpdateConOLV();                                 // Update Contact OLV
     }
 }