// Constructor
        public App()
        {
            // Global handler for uncaught exceptions. 
            // Note that exceptions thrown by ApplicationBarItem.Click will not get caught here.
            UnhandledException += Application_UnhandledException;

            // Standard Silverlight initialization
            InitializeComponent();

            // Phone-specific initialization
            InitializePhoneApplication();

            // Validate Developer Password
            var passwordValidator = new PasswordValidator();
            passwordValidator.PasswordValidated += CheckPassword;
            passwordValidator.ValidatePassword(AppSettings.DeveloperPassword);

            // Create the shell tile schedule instance 
            CreateShellTileSchedule();

            KanjiDict = new KanjiDictionary();
        }
 private void Submit_Click(object sender, RoutedEventArgs e)
 {
     var validator = new PasswordValidator();
     validator.PasswordValidated += CheckPassword;
     validator.ValidatePassword(PasswordTextBox.Password);
 }