Esempio n. 1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     TimeLbl.Text = DateTime.Now.GetDateTimeFormats('t')[0].ToString();
     DateLbl.Text = DateTime.Now.GetDateTimeFormats('M')[0].ToString() + ",";
     Lbl.Text     = Week();
     PassPanel.Hide();
 }
Esempio n. 2
0
        private void PassPic_Click(object sender, EventArgs e)
        {
            string password = "******";

            if (PassTxtBox.Text == password)
            {
                FormDesk dsk = new FormDesk();
                dsk.Show();
            }
            else
            {
                PassPanel.Hide();
                TipPanel.Show();
            }
        }
Esempio n. 3
0
 private void Form1_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == 13)
     {
         string password = "******";
         if (PassTxtBox.Text == password)
         {
             FormDesk dsk = new FormDesk();
             dsk.Show();
         }
         else
         {
             PassPanel.Hide();
             TipPanel.Show();
         }
     }
 }