private void InvokeProfileDownload(EProfileDownloaded e) { EventHandler <EProfileDownloaded> handler = ProfileDownload; if (handler != null) { handler(null, e); } }
private void ProfileChanged(object sender, EProfileDownloaded e) { string profileToLoad = e.Path; if (profileToLoad.Contains(".xml")) { FlyingEngine.CurrentProfile = new FlyingProfile(); FlyingEngine.CurrentProfile.LoadFile(profileToLoad); FlyingSettings.Profile = profileToLoad; FlyingSettings.SaveSettings(); UpdateControls(); } else { MessageBox.Show("Could not load the downloaded profile, invalid profile type"); } }
private void InvokeProfileDownload(EProfileDownloaded e) { EventHandler<EProfileDownloaded> handler = ProfileDownload; if (handler != null) handler(null, e); }
private void ProfileChanged(object sender, EProfileDownloaded e) { string profileToLoad = e.Path; if (profileToLoad.Contains(".xml")) { FlyingEngine.CurrentProfile = new FlyingProfile(); FlyingEngine.CurrentProfile.LoadFile(profileToLoad); FlyingSettings.Profile = profileToLoad; FlyingSettings.SaveSettings(); UpdateControls(); } else { MessageBox.Show("Could not load the downloaded profile, invalid profile type"); } }