コード例 #1
0
        private void settings_Click(object sender, EventArgs e)
        {
            this.Close();
            Main_chef m_ch = new Main_chef();

            m_ch.Show();
        }
コード例 #2
0
        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
            Main_chef ch = new Main_chef();

            ch.Show();
        }
コード例 #3
0
        private void go_back_Click(object sender, EventArgs e)
        {
            this.Close();
            Main_chef ch = new Main_chef();

            ch.Show();
        }
コード例 #4
0
 private void login_Click(object sender, EventArgs e)
 {
     users.Load();
     if (users.Check(login_field.Text, password_field.Text) == "adm")
     {
         login_field.Text    = "";
         password_field.Text = "";
         this.Hide();
         Main_admin main_adm = new Main_admin();
         main_adm.Show();
     }
     else
     {
         if (users.Check(login_field.Text, password_field.Text) == "che")
         {
             login_field.Text    = "";
             password_field.Text = "";
             this.Hide();
             Main_chef main_chef = new Main_chef();
             main_chef.ShowDialog();
         }
         else
         {
             if (users.Check(login_field.Text, password_field.Text) == "Wrong_pas")
             {
                 MessageBox.Show("Неправильный пароль");
                 login_field.Text    = "";
                 password_field.Text = "";
             }
             else
             {
                 if (users.Check(login_field.Text, password_field.Text) == "No_such")
                 {
                     MessageBox.Show("Пользователь не найден");
                     login_field.Text    = "";
                     password_field.Text = "";
                 }
             }
         }
     }
 }