public ChangePass(string _numStudent, studentWork _stud)
 {
     //numStudent = _numStudent;
     InitializeComponent();
     numStudent = _numStudent;
     stud = _stud;
 }
 public WarningPass(string _numStud,studentWork _studw)
 {
     InitializeComponent();
     numStudent = _numStud;
     studentWorks = _studw;
     this.StartPosition = FormStartPosition.Manual;
     this.Location = new Point(Screen.PrimaryScreen.Bounds.Width - this.Width, Screen.PrimaryScreen.Bounds.Height - this.Height);
     GeneralTimer.Start();
 }
 public TestStart(int _numStud,string _pathxml, studentWork _studworkform)
 {
     InitializeComponent();
     numStud = _numStud;
     XmlPath = _pathxml;
     studworkForm = _studworkform;
     xmlReader = new XmlTextReader(XmlPath); //Создаем xmlReader
     xmlReader.Read();
 }
 public ReportForm(int _idTest,int _NumStud,string _theme, int _ball, int _time, List<TextQuestion> _questions, int[] _mass, List<TestAnswers> _answers,studentWork _studentwork)
 {
     InitializeComponent();
     idTest = _idTest;
     NumStud = _NumStud;
     TestTheme = _theme;
     StudBall=_ball;
     StudTime=_time;
     Questions = _questions;
     notRightAnswer = _mass;
     Answers = _answers;
     studentForm = _studentwork;
 }
 private void checkStudent()
 {
     conn = new SqlConnection(connectionString);
     conn.Open();
     SqlCommand comm = new SqlCommand();
     comm.Connection = conn;
     comm.CommandText = "select [№ студента] from Студент where Фамилия = '"+ textBox1.Text +"' and Имя = '"+ textBox2.Text +"' and Отчество = '"+ textBox3.Text +"' and Пароль = '"+ textBox4.Text +"'";
     SqlDataReader rdr = comm.ExecuteReader();
     if (rdr.HasRows)
     {
         label6.Visible = false;
         rdr.Read();
         studentWork sw = new studentWork(rdr[0].ToString(),textBox4.Text);
         sw.Show();
         this.Hide();
     }
     else
     {
         label6.Visible = true;
         clearColumns();
     }
     rdr.Close();
     conn.Close();
 }
 private void studEst_FormClosing(object sender, FormClosingEventArgs e)
 {
     studentWork sw = new studentWork(numStud);
     sw.Show();
     this.Hide();
 }
 private void выходToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Вы уверены, что хотите вернуться в систему?", "Подтверждение", MessageBoxButtons.OKCancel) == DialogResult.OK)
     {
         string pass = (string)SelectPassStud();
         studentWork studwork = new studentWork(NumStud.ToString(), pass);
         this.Hide();
         studwork.Show();
     }
 }