Ejemplo n.º 1
0
 private void SatSlider_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e)
 {
     if (slidersAllowed)
     {
         PutEvents.ChangeSaturation(LightProperty.GetLightSource(((Slider)sender)), (int)((Slider)sender).Value);
     }
 }
Ejemplo n.º 2
0
 private void Slider_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e)
 {
     if (slidersAllowed && !usingMega)
     {
         PutEvents.ChangeBrightness(LightProperty.GetLightSource((Slider)sender), (int)((Slider)sender).Value);
         UpdateMega();
     }
 }
Ejemplo n.º 3
0
 private void TileCombo_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (slidersAllowed)
     {
         System.Windows.Controls.ComboBox tileRef = (System.Windows.Controls.ComboBox)sender;
         string    settingName = LightProperty.GetLightSource(tileRef);
         ComboItem temp        = (ComboItem)tileRef.SelectedItem;
         Properties.Settings.Default[settingName] = temp.idStore;
         CloseAfterSettings = true;
     }
 }
Ejemplo n.º 4
0
        private void Tile_Click(object sender, RoutedEventArgs e)
        {
            bool hardCoded;

            if (LightProperty.GetLightSource(((Tile)sender)).Substring(0, 6) == "scene_")
            {
                hardCoded = false;
            }
            else
            {
                hardCoded = true;
            }

            PutEvents.ChangeScene(LightProperty.GetLightSource(((Tile)sender)), hardCoded);
            SetInfo();
            FadeOut();
        }