Esempio n. 1
0
        private void passwordEntered_Click(object sender, RoutedEventArgs e)
        {
            string pass = passwordBox1.Password;

            passwordBox1.Password = string.Empty;
            if (pass == "tennis")
            {
                vm.bLoggedIn = true;
                if (((App)Application.Current).bBCS)
                {
                    vm.ClassifyButtonText        = "Admin Off";
                    vm.ReClassifyButtonText      = "ReClassify On";
                    vm.QuickReClassifyButtonText = "Quick reclassify On";
                    vm.BatchButtonText           = "Batch On";
                    BatchBCS.Visibility          = Visibility.Visible;
                    QuickReClassify.Visibility   = Visibility.Visible;
                    Classify.Visibility          = Visibility.Visible;
                }


                if (registerView != null)
                {
                    ReClassify.Visibility = Visibility.Visible;

                    registerView.SetFocusBarcode();
                }
                else if (qssView != null)
                {
                    qssView.SetFocusEmployeeId();
                    qssView.Note.Visibility = Visibility.Visible;
                }
            }
        }
Esempio n. 2
0
        private void passwordEntered_Click(object sender, RoutedEventArgs e)
        {
            string pass = passwordBox1.Password;

            passwordBox1.Password = string.Empty;
            if (pass == "tennis")
            {
                vm.bLoggedIn                 = true;
                vm.ClassifyButtonText        = "Admin Off";
                vm.ReClassifyButtonText      = "ReClassify On";
                vm.QuickReClassifyButtonText = "Quick reclassify On";
                QuickReClassify.Visibility   = Visibility.Visible;
                Classify.Visibility          = Visibility.Visible;
                if (registerView != null)
                {
                    ReClassify.Visibility = Visibility.Visible;

                    registerView.SetFocusBarcode();
                }
            }
        }