Пример #1
0
        private void btnModificar_Click(object sender, EventArgs e)
        {
            Materia matModi = new Materia(dgvMaterias.CurrentRow.Cells[0].Value.ToString()
                                          , Convert.ToInt32(dgvMaterias.CurrentRow.Cells[2].Value)
                                          , Convert.ToInt32(dgvMaterias.CurrentRow.Cells[3].Value)
                                          , Convert.ToInt32(dgvMaterias.CurrentRow.Cells[1].Value));
            AltaModiMateria abMat = new AltaModiMateria(matModi);

            abMat.Show();
        }
Пример #2
0
        private void btnAgregar_Click(object sender, EventArgs e)
        {
            AltaModiMateria abMat = new AltaModiMateria();

            abMat.Show();
        }