Exemple #1
0
 public override void Nuevo()
 {
     using (var frm = new ClientesForm(container, new Entidades.Clientes()))
     {
         frm.IsNew = true;
         if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             Listar();
         }
     }
 }
Exemple #2
0
        public override void Editar()
        {
            var seleccionado = clientesBindingSource.Current as Clientes;

            using (var frm = new ClientesForm(container, seleccionado))
            {
                if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    Listar();
                }
            }
        }