Exemple #1
0
        void BtnNuevoClick(object sender, EventArgs e)
        {
            var frmArticulo = new FrmArticulo();

            if (frmArticulo.ShowDialog() == DialogResult.Yes)
            {
                CargarArticulos();
            }
        }
Exemple #2
0
 void BtnModificarClick(object sender, EventArgs e)
 {
     if (dgvArticulos.SelectedRows.Count > 0)
     {
         Articulo articulo    = Articulo.FindByID(Convert.ToInt16(dgvArticulos.CurrentRow.Cells["ID"].Value.ToString()));
         var      frmArticulo = new FrmArticulo(articulo);
         if (frmArticulo.ShowDialog() == DialogResult.Yes)
         {
             CargarArticulos();
         }
     }
 }