Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            Show_Teacher_Form d = new Show_Teacher_Form();

            d.Show();
        }
        private void showTeachersToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Show_Teacher_Form d = new Show_Teacher_Form();

            d.Show();
            // this.Hide();
        }
        private void teacher_update_button_Click(object sender, EventArgs e)
        {
            string tname  = t_name.Text;
            string tid    = t_id.Text;
            string tpas   = t_pass.Text;
            string tpos   = t_position.Text;
            string tsub   = t_subject.Text;
            string tdob   = t_dob.Text;
            string tgen   = t_gender.Text;
            string tblood = t_blood.Text;
            string tsal   = t_salary.Text;
            string tcon   = t_contact.Text;
            string tadd   = t_address.Text;


            queryClass.updateTeacher(tname, tid, tpas, tpos, tsub, tdob, tgen, tblood, tsal, tcon, tadd);
            this.Hide();
            Show_Teacher_Form d = new Show_Teacher_Form();

            d.ShowDialog();
        }