Exemple #1
0
        private void PerformSearch()
        {
            #region Crash Test Easter Egg

            // Easter egg to intentionally crash waze - for testing
            if (SearchTextBox.Text.Contains("Crash Waze"))
            {
                throw new Exception("Waze Crash Test");
            }

            #endregion Crash Test Easter Egg

            WebStats.ReportWebStatEventAsync("Search");

            InProgressGrid.Visibility = System.Windows.Visibility.Visible;
            SelectAction(ActionType.SingleSearch);
        }
Exemple #2
0
        private void CloseDialog(NavigateResultControlViewModel.DialogClosingEventArgs.ClosingActions action)
        {
            //Report statistics:
            string actionString = action.ToString();
            string actionName   = actionString.Substring(actionString.LastIndexOf(".") + 1);

            WebStats.ReportWebStatEventAsync(actionName);

            lock (viewModel)
            {
                countdownThread = null;
                this.viewModel.NotifyDialogClosed(action);
                System.Windows.Deployment.Current.Dispatcher.BeginInvoke(() =>
                {
                    Hide();
                });
            }
        }
Exemple #3
0
 private void LogInButton_Click(object sender, RoutedEventArgs e)
 {
     WebStats.ReportWebStatEventAsync("Login");
     this.pageContext.OnSignin(this.UsernameTexBox.Text, this.PasswordBox.Password);
 }