Exemple #1
0
        static public bool NotEmptyPasswordBox(PasswordBox tb)
        {
            bool check = true;

            if (tb.Password == "")
            {
                check         = false;
                tb.Background = Brushes.Red;
            }
            else
            {
                tb.Background = (SolidColorBrush)tb.FindResource("LightBrush");
            }

            return(check);
        }