コード例 #1
0
        private void FinishBtn_Click(object sender, EventArgs e)
        {
            i++;
            if (data.VerifyPassword(PwBox.Text).Verified)
            {
                panel1.Hide();
                PwBox.Hide();
                FinishBtn.Hide();
                pictureBox1.Hide();
                PwBox.Clear();

                UnlockAll();

                SetView(dashBoard1);
                MoveMark(DashBtn.Location.Y);
            }
            else
            {
                PwBox.ForeColor = Color.Red;
                if (i == 3)
                {
                    FinishBtn.Enabled = false;
                }
            }
        }
コード例 #2
0
 private void FinishBtn_Click(object sender, EventArgs e)
 {
     i++;
     if (data.VerifyPassword(PwBox.Text).Verified)
     {
         panel1.Hide();
         PwBox.Hide();
         FinishBtn.Hide();
         pictureBox1.Hide();
         PwBox.Clear();
     }
     else
     {
         PwBox.ForeColor = Color.Red;
         if (i == 3)
         {
             FinishBtn.Enabled = false;
         }
     }
 }