private void Application_Startup(object sender, StartupEventArgs e) { this.startupEventArgs = e; // Get global variables DataServiceHelper.GetGlobalVariableAsync(GetGlobalVariableCompleted); }