Exemplo n.º 1
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            FormViewSingleStudent newform = new FormViewSingleStudent();

            newform.selectedStudentID = null;
            newform.view = false;
            newform.Activate();
            newform.Show();
        }
Exemplo n.º 2
0
        private void dataGridViewsStudentForm_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            FormViewSingleStudent newform = new FormViewSingleStudent();

            newform.view = true;
            newform.selectedStudentID = dataGridViewsStudentForm.CurrentRow.Cells[3].Value.ToString();
            newform.Activate();
            newform.Show();
        }
Exemplo n.º 3
0
        private void dataGridViewsStudentForm_Click(object sender, EventArgs e)
        {
            // Open new form FormViewSingleStudent

            FormViewSingleStudent newform = new FormViewSingleStudent();

            // transfer to FormViewSingleStudent Student ID

            newform.view = true;
            newform.selectedStudentID = dataGridViewsStudentForm.CurrentRow.Cells[0].Value.ToString();


            newform.Activate();
            newform.Show();
        }