Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            trainForm trForm = new trainForm();

            trForm.Show();
            this.Hide();
            atention.Visible    = false;
            trForm.FormClosing += TrainForm_FormClosing;
            trForm.doUserView();
        }
Beispiel #2
0
 private void btnLog_Click(object sender, EventArgs e)
 {
     WriteToFile("Admin", "Admin");
     ReadFromFile();
     if (logBox.Text == Decode(login) && passBox.Text == Decode(password))
     {
         trainForm trForm = new trainForm();
         trForm.Show();
         this.Hide();
         atention.Visible    = false;
         trForm.FormClosing += TrainForm_FormClosing;
     }
     else
     {
         atention.Visible = true;
         logBox.Clear();
         passBox.Clear();
     }
 }