protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            applicationInsightHelper = new ApplicationInsightHelper();
            ApplicationBootstrapper bootstrapper = new ApplicationBootstrapper();

            bootstrapper.Run();
        }
Exemple #2
0
        private void OnIdle(object sender, EventArgs e)
        {
            System.Windows.Forms.Application.Idle -= OnIdle;

            applicationInsightHelper = new ApplicationInsightHelper();

            System.Windows.Forms.Application.ThreadException += Application_ThreadException;
            AppDomain.CurrentDomain.UnhandledException       += CurrentDomain_UnhandledException;

            _bootstrapper = new ApplicationBootstrapper(this.Application, this.CustomTaskPanes, Globals.Ribbons, Globals.FormRegions, mainRibbon);
            applicationInsightHelper.TrackPageView("ThisAddIn");
            _bootstrapper.Run();
        }
 public MainWindow(DataContext context, ApplicationInsightHelper applicationInsightHelper)
 {
     DataContext = context;
     applicationInsightHelper.TrackPageView("MainWindow");
     InitializeComponent();
 }
 public MainWindow(DataContext context, ApplicationInsightHelper applicationInsightHelper)
 {
     DataContext = context;
     applicationInsightHelper.TrackPageView("MainWindow");
     InitializeComponent();
 }