Beispiel #1
0
 private void btnNuevo_Click(object sender, EventArgs e)
 {
     try
     {
         frmAgregarEditarCliente AgregarCliente = new frmAgregarEditarCliente(this);
         AgregarCliente.Show(this);
     }
     catch (Exception Ex)
     {
         MessageBox.Show(Ex.Message, "Error en proceso", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Beispiel #2
0
 private void EditarCliente()
 {
     try
     {
         if (ClienteID > 0 && btnEditar.Enabled == true)
         {
             frmAgregarEditarCliente EditarCliente = new frmAgregarEditarCliente(ClienteID, this);
             EditarCliente.Show(this);
         }
         //else
         //{
         //    MessageBox.Show("Debe seleccionar un cliente", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         //}
     }
     catch (Exception Ex)
     {
         MessageBox.Show(Ex.Message);
     }
 }
Beispiel #3
0
 public frmAgregarEditarContacto(cContactos Contacto, Clientes.frmAgregarEditarCliente frmAgregarEditarCliente) : this()
 {
     // TODO: Complete member initialization
     this.Contacto = Contacto;
     this.frmAgregarEditarCliente = frmAgregarEditarCliente;
 }