Beispiel #1
0
 private void bunifuThinButton2_Click(object sender, EventArgs e)
 {
     RegisterPanel1.SendToBack();
     panel3.SendToBack();
     LoginPanel.Visible = true;
     LoginPanel.BringToFront();
 }
Beispiel #2
0
 public void showLoginPanel()
 {
     label2.Visible     = false;
     MainMenu.Visible   = false;
     textBox1.Text      = textBox2.Text = string.Empty;
     LoginPanel.Visible = true;
     LoginPanel.BringToFront();
     LoginPanel.Dock = DockStyle.Fill;
 }
Beispiel #3
0
 private void ShowLoginPanel(bool state)
 {
     if (state)
     {
         LeftPanel.Visible    = false;
         LogOutButton.Enabled = false;
         LoginPanel.BringToFront();
     }
     else
     {
         LeftPanel.Visible    = true;
         LogOutButton.Enabled = true;
         LoginPanel.SendToBack();
     }
 }
        //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 = "";
        }
 private void loginbtn_Click(object sender, EventArgs e)
 {
     LoginPanel.BringToFront();
 }
Beispiel #6
0
 public void LoginForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     LoginPanel.BringToFront();
 }