コード例 #1
0
        private void mnuGridNuevo_Click(object sender, EventArgs e)
        {
            frmProductEdicion frm = new frmProductEdicion("0", "New");

            frm.ShowDialog();

            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                // Refrescar grilla
                btnFilter_Click(sender, e);
            }
        }
コード例 #2
0
        private void mnuGridModificar_Click(object sender, EventArgs e)
        {
            string strProductId = grdData.Selected.Rows[0].Cells[0].Value.ToString();

            frmProductEdicion frm = new frmProductEdicion(strProductId, "Edit");

            frm.ShowDialog();

            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                // Refrescar grilla
                btnFilter_Click(sender, e);
            }
        }