示例#1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmUpdatePlanes agregarVentana = new frmUpdatePlanes();

            agregarVentana.Text = "Agregar Plan";
            agregarVentana.Show();
        }
示例#2
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            frmUpdatePlanes modificarVentana = new frmUpdatePlanes();
            var             plan             = (Plan)dgvPlanes.CurrentRow.DataBoundItem;

            modificarVentana.InicializarFormulario(frmUpdatePlanes.FormMode.update, plan);
            modificarVentana.ShowDialog();
            btnConsultar_Click(sender, e);
        }