Exemple #1
0
        private void LoginForm_Load(object sender, EventArgs e)
        {
            ClassBackEnd.StartUp();
            GraphicsPath myPath = new GraphicsPath();

            myPath.AddEllipse(0, 0, 96, 96);
            RegisterButton.Region = new Region(myPath);
            LoginButton.Region    = new Region(myPath);

            string name = "";
            string pass = "";

            RememberMeRead(ref name, ref pass);

            if (name != "")
            {
                UserTextBox.Text         = name;
                PasswordTextBox.Text     = pass;
                RememberCheckBox.Checked = true;


                UserCueText.Hide();
                PasswordCueText.Hide();
            }
        }
Exemple #2
0
 private void UserTextBox_Leave(object sender, EventArgs e)
 {
     if (UserTextBox.Text.Trim() == "")
     {
         UserCueText.Show();
     }
     else
     {
         UserCueText.Hide();
     }
 }
Exemple #3
0
 private void UserTextBox_Enter(object sender, EventArgs e)
 {
     if (UserTextBox.Text.Trim() == "")
     {
         UserCueText.Hide();
     }
     else if (UserTextBox.Text.Trim() != "" && UserCueText.Visible == false)
     {
         UserCueText.Hide();
     }
 }