/// <summary> /// This should be consider the main constructor for the app. It's called after the UI has loaded. /// </summary> public async void OnLoad() { MenuUI.Instance.Initialize(); if (Preferences.ExecutionCount == 0) { await Preferences.SetDefaultPreferences(); } SessionProcessor.Instance.Initialize(); CheckForAppUpdate.Instance.CheckForUpdate(); FiddlerApplication.UI.lvSessions.AddBoundColumn("Elapsed Time", 110, "X-ElapsedTime"); FiddlerApplication.UI.lvSessions.AddBoundColumn("Session Type", 150, "X-SessionType"); FiddlerApplication.UI.lvSessions.AddBoundColumn("Authentication", 140, "X-Authentication"); FiddlerApplication.UI.lvSessions.AddBoundColumn("Host IP", 110, "X-HostIP"); FiddlerApplication.UI.lvSessions.AddBoundColumn("Response Server", 130, "X-ResponseServer"); // Throw a message box to alert demo mode is running. if (Preferences.GetDeveloperMode()) { MessageBox.Show("Developer / Demo mode is running!"); } else { await TelemetryService.InitializeAsync(); } }
public async void OnLoad() { await TelemetryService.InitializeAsync(); calledColumnsUI.AddAllEnabledColumns(); // Comment out, do not think ordering columns works in OnLoad, needed in IAutoTamper. //this.OrderColumns(); }