private void GiveMicrophoneInputSlidersVariables() { MicrophoneBrightnessOptions brightnessOption = BrightnessOptionFrame.Content as MicrophoneBrightnessOptions; MicrophoneColorOption colorOption = ColorOptionFrame.Content as MicrophoneColorOption; PartyUIUpdater.GiveVariablesSlider <MicrophoneBrightnessOptions, MicrophoneColorOption>(brightnessOption, colorOption); }
private void Page_Loaded(object sender, RoutedEventArgs e) { PartyUIUpdater.GiveVariablesInputDifference <MicrophoneDifferenceColorOption>(this); UpdateControls(); canSelect = true; }
private void SaveOneActivated() { if (!LightProcessingRandom.isUpdating) { LightProcessingRandom.StartUpdates(); } PartyUIUpdater.GiveVariablesInterval <PartyControlSimple, PartyControlSimple>(this, null); }
private void Page_Loaded(object sender, RoutedEventArgs e) { BrightnessOptionComboBox.SelectedIndex = PartyOptions.activePartyOption.brightnessOptionIndex; ColorOptionComboBox.SelectedIndex = PartyOptions.activePartyOption.colorOptionIndex; NavigateToBrighnessOption(PartyOptions.activePartyOption.brightnessOptionIndex); NavigateToColorOption(PartyOptions.activePartyOption.colorOptionIndex); canSelect = true; PartyUIUpdater.GiveVariablesOutput(this); }
//random private void SelectedRandom() { if (!LightProcessingRandom.isUpdating) { LightProcessingRandom.StartUpdates(); } RandomBrightnessOption randomBrightnessOption = BrightnessOptionFrame.Content as RandomBrightnessOption; RandomColorOption randomColorOption = ColorOptionFrame.Content as RandomColorOption; PartyUIUpdater.GiveVariablesInterval <RandomBrightnessOption, RandomColorOption>(randomBrightnessOption, randomColorOption); }
private void SaveZeroDeactivated() { SoundInput.StopMicrophoneInputSafely(); PartyUIUpdater.GiveVariablesInterval <PartyControlSimple, PartyControlSimple>(null, null); }
private async void SaveZeroActivated() { PartyUIUpdater.GiveVariablesSlider <PartyControlSimple, PartyControlSimple>(this, null); await SoundInput.StartMicrophoneInputSafely(); }