Beispiel #1
0
        public void OnPresetSelect(object sender, SelectEventArgs <int> e)
        {
            if (null != altSlider)
            {
                altSlider.Value = Presets[e.Index].altitude;
            }

            UpdateAltitudeDisplay();
            UpdateAtmosphere();
            EditorController.altitude = Presets[e.Index].altitude;
        }
Beispiel #2
0
 protected void SendOnSelect(int index)
 {
     if (null != OnSelect)
     {
         SelectEventArgs <int> args = new SelectEventArgs <int>(index);
         foreach (EventHandler <SelectEventArgs <int> > inv in OnSelect.GetInvocationList())
         {
             try
             {
                 inv(this, args);
             }
             catch (Exception exception)
             {
                 Log.postException(exception);
             }
         }
     }
 }