Ejemplo n.º 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();
            }
        }
Ejemplo n.º 2
0
 private void PasswordTextBox_Leave(object sender, EventArgs e)
 {
     if (PasswordTextBox.Text.Trim() == "")
     {
         PasswordCueText.Show();
     }
     else
     {
         PasswordCueText.Hide();
     }
 }
Ejemplo n.º 3
0
 private void PasswordTextBox_Enter(object sender, EventArgs e)
 {
     if (PasswordTextBox.Text.Trim() == "")
     {
         PasswordCueText.Hide();
     }
     else if (PasswordTextBox.Text.Trim() != "" && PasswordCueText.Visible == false)
     {
         PasswordCueText.Hide();
     }
 }