Beispiel #1
0
        public LoginWindow(MainWindow mainWRef, Logic logicRef)
        {
            InitializeComponent();
            this.mainWRef = mainWRef;
            this.logicRef = logicRef;

            UserNameTB.Focus();
            UserNameTB.SelectAll();
        }
Beispiel #2
0
        private void UserNameTB_Enter(object sender, EventArgs e)
        {
            if (UserNameTB.Text == "username")
            {
                UserNameTB.Clear();
            }
            UserNameTB.SelectAll();
            UserNameTB.Focus();
            userPic.BackgroundImage = Properties.Resources.userLogin2;
            UserNameLn.BackColor    = Color.White;
            UserNameTB.ForeColor    = Color.White;

            passPic.BackgroundImage = Properties.Resources.userPassword;
            PasswordLn.BackColor    = Color.Black;
            PasswordTB.ForeColor    = Color.Black;

            //wrongTB.Visible = false;
        }