private void btnNew_Click(object sender, EventArgs e)
        {
            ModuloPensum frm = new ModuloPensum();

            frm.Show();
            this.Hide();
        }
Esempio n. 2
0
        //Constructor que es llamado en el form ModuloPensum
        public ModuloOptativa(ModuloPensum parent)
        {
            InitializeComponent();
            this.parent = parent;

            arrayY[0] = 14;
            arrayY[1] = 14;

            arrayCont[0] = 0;
            arrayCont[1] = 0;
        }
 private void dgvPensum_CellClick_1(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         int index = e.RowIndex;
         if (index >= 0)
         {
             ModuloPensum frm = new ModuloPensum(plans[index]);
             frm.Show();
             this.Hide();
         }
     }
     catch (Exception ex)
     {
         FormUtils.defaultErrorMessage(ex);
     }
 }