//Logout Button
        private void LockBtn_Click(object sender, EventArgs e)
        {//Hiding all Ui elements
            UserLabel.Hide();
            UserBtn.Hide();
            DetectBtn.Hide();
            TrainBtn.Hide();
            LockBtn.Hide();
            ExitBtn.Hide();
            mark2.Hide();

            LoginPanel.Show();
            LoginPanel.Dock = DockStyle.Fill;
            LoginPanel.BringToFront();

            NameBox.Text = "";
            PassBox.Text = "";
        }
Esempio n. 2
0
 //hides the main menu
 void hideMenu()
 {
     ClassicBtn.Hide();
     ExitBtn.Hide();
     HelpBtn.Hide();
     TimeBtn.Hide();
     multiplayerBtn.Hide();
     menuBack.Hide();
     HomeTLbl.Hide();
     boardHomeBtn.Show();
     TitleLbl.Show();
     if (gameMode == 2)
     {
         P1ScoreLbl.Show();
         P2ScoreLbl.Show();
         turnLbl.Show();
     }
 }