Exemplo n.º 1
0
        private void InvokeProfileDownload(EProfileDownloaded e)
        {
            EventHandler <EProfileDownloaded> handler = ProfileDownload;

            if (handler != null)
            {
                handler(null, e);
            }
        }
Exemplo n.º 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");
     }
 }
Exemplo n.º 3
0
 private void InvokeProfileDownload(EProfileDownloaded e)
 {
     EventHandler<EProfileDownloaded> handler = ProfileDownload;
     if (handler != null)
         handler(null, e);
 }
Exemplo n.º 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");
     }
 }