private void App_LoadCompleted(object sender, System.Windows.Navigation.NavigationEventArgs e) { clock.Stop(); var elapsed = clock.Elapsed; mainWindow.statusBarTimeElapsed.Content = elapsed.Humanize(2, false); DiagnosticsClient.TrackEvent("StartupPerf", new Dictionary <string, string> { { "DeploymentType", ThisAppVersionInfo.GetDeploymentType() }, { "NetFlavor", ThisAppVersionInfo.GetDotNetInfo() } }, new Dictionary <string, double> { { "startupTime", elapsed.TotalMilliseconds } }); }
private void MainWindow_Loaded(object sender, RoutedEventArgs e) { Navigation.Navigation.Navigate(new Uri("Views/MainPage.xaml", UriKind.RelativeOrAbsolute)); ((ShellViewModel)this.DataContext).StartUpTime = App.Clock.Elapsed.Humanize(2, false); this.Title += $"{ThisAppVersionInfo.ProductVersion} [{ThisAppVersionInfo.GetDeploymentType()}] [{ThisAppVersionInfo.GetDotNetInfo()}]"; }
private void MainWindow_Loaded(object sender, RoutedEventArgs e) { Navigation.Navigation.Navigate(new Uri("Views/MainPage.xaml", UriKind.RelativeOrAbsolute)); this.Title += $"{ThisAppVersionInfo.ProductVersion} [{ThisAppVersionInfo.GetDeploymentType()}] [{ThisAppVersionInfo.GetDotNetInfo()}]"; }