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(); }
private void SceneCombo_SelectionChanged(object sender, SelectionChangedEventArgs e) { ComboItem temp = (ComboItem)SceneCombo.SelectedItem; if (temp != null) { if (slidersAllowed && temp.idStore != "") { PutEvents.ChangeScene(temp.idStore, false); NewSceneInfo(temp.idStore); } ButtonUpdate(temp.idStore); } else { this.SceneCombo.SelectedIndex = 0; } }