예제 #1
0
        private void InvokeProfileDownload(EProfileDownloaded e)
        {
            EventHandler <EProfileDownloaded> handler = ProfileDownload;

            if (handler != null)
            {
                handler(null, e);
            }
        }
예제 #2
0
 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");
     }
 }
예제 #3
0
 private void InvokeProfileDownload(EProfileDownloaded e)
 {
     EventHandler<EProfileDownloaded> handler = ProfileDownload;
     if (handler != null)
         handler(null, e);
 }
예제 #4
0
 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");
     }
 }