Ejemplo n.º 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);
        }
Ejemplo n.º 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();
                });
            }
        }
Ejemplo n.º 3
0
 private void LogInButton_Click(object sender, RoutedEventArgs e)
 {
     WebStats.ReportWebStatEventAsync("Login");
     this.pageContext.OnSignin(this.UsernameTexBox.Text, this.PasswordBox.Password);
 }