示例#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();
        }
示例#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();
            }
        }