Ejemplo n.º 1
0
        public void NuevoCliente()
        {
            FrmEditorClientes editorClientes = new FrmEditorClientes();

            if (editorClientes.NuevoCliente() == DialogResult.OK)
            {
                clientes.ObtenerListaClientes(ref this.metroGrid1);
            }
        }
Ejemplo n.º 2
0
 public void ModificarCliente()
 {
     if (metroGrid1.SelectedRows.Count > 0)
     {
         int indice = metroGrid1.CurrentCell.RowIndex;
         int cod    = Convert.ToInt32(metroGrid1.Rows[indice].Cells[0].Value);
         FrmEditorClientes editorClientes = new FrmEditorClientes();
         if (editorClientes.EditarCliente(cod) == DialogResult.OK)
         {
             clientes.ObtenerListaClientes(ref this.metroGrid1);
         }
     }
 }