Esempio n. 1
0
        void Window_Loaded(object sender, RoutedEventArgs e)
        {
            if (Context.ctx.Employees.Count() == 0)
            {
                RedirectToFirstUse();
            }

            this.redirector = new PasswordRedirector(this.txtPassw);

            this.txtLogin.Foreground = new SolidColorBrush((Color)ColorConverter.ConvertFromString(this.color));
            this.txtPassw.Foreground = new SolidColorBrush((Color)ColorConverter.ConvertFromString(this.color));

            this.txtLogin.GotFocus += SetActive;
            this.txtPassw.GotFocus += SetActive;
        }
 void SetupRedirector()
 {
     this.redirector = new PasswordRedirector(this.txtPassw, this.txtPasswRepeat);
     this.redirector.Bind(this.txtPassw);
     this.redirector.Bind(this.txtPasswRepeat);
 }