Beispiel #1
0
        private void btnNuevo_Click(object sender, EventArgs e)
        {
            // Instancia el formulario
            Views.New frmNew = new Views.New();
            frmNew.ShowDialog();

            // Refresca la tabla
            Refresh();
        }
Beispiel #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            int?productId = GetId();

            if (productId != null)
            {
                Views.New frmNew = new Views.New(productId);
                frmNew.ShowDialog();

                // Refresca la tabla
                Refresh();
            }
        }