Esempio n. 1
0
        private void AgregarRegistro()
        {
            FrmPlatosItem F = new FrmPlatosItem();

            F.Incluir();
            if (F.DialogResult == DialogResult.OK)
            {
                Busqueda();
            }
        }
 private void AgregarRegistro()
 {
     do
     {
         FrmPlatosItem F = new FrmPlatosItem();
         F.Incluir();
         if (F.DialogResult != DialogResult.OK)
         {
             return;
         }
         Busqueda();
     } while (true);
 }
Esempio n. 3
0
        private void EditarRegistro()
        {
            FrmPlatosItem F        = new FrmPlatosItem();
            Plato         registro = (Plato)this.bs.Current;

            if (registro == null)
            {
                return;
            }
            F.registro = FactoryPlatos.ActualizarCosto(registro);
            F.Modificar();
            if (F.DialogResult == DialogResult.OK)
            {
                Busqueda();
            }
        }