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