Ejemplo n.º 1
0
        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 }
            });
        }
Ejemplo n.º 2
0
 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()}]";
 }
Ejemplo n.º 3
0
 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()}]";
 }