Exemplo 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();
 }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        instance = this;
        this.gameObject.SetActive(false);
        this.transform.Find("Beginbtn").GetComponent <Button>().onClick.AddListener(BeginGame);
        this.transform.Find("Fhbtn").GetComponent <Button>().onClick.AddListener(FhGame);

        Initialization();
        PassText();
    }
Exemplo n.º 3
0
        private void Form1_MouseClick(object sender, MouseEventArgs e)
        {
            Image img = Properties.Resources._2;//双引号里是图片的路径

            this.BackgroundImage = img;
            IconPic.Visible      = true;
            PassTxtBox.Visible   = true;
            PassPic.Visible      = true;
            PassTxtBox.Text      = "";
            NickNameLbl.Visible  = true;
            TimeLbl.Visible      = false;
            DateLbl.Visible      = false;
            Lbl.Visible          = false;
            PassPanel.Show();
        }
Exemplo n.º 4
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();
            }
        }
Exemplo n.º 5
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();
         }
     }
 }
Exemplo n.º 6
0
 private void ConfrimBt_Click(object sender, EventArgs e)
 {
     TipPanel.Hide();
     PassTxtBox.Text = "";
     PassPanel.Show();
 }
Exemplo n.º 7
0
 private void Awake()
 {
     instance = this;
 }