private void BeatControlsChanged(object sender, EventArgs e) { if (EnabledOSC == true) { BeatControls beatcontrols = sender as BeatControls; cd = DataContext as ChannelData; message.SendOSC(cd.Name + "/" + beatcontrols.Name, beatcontrols.Multiplier.ToString()); } }
private void SliderValueChanged(object sender, EventArgs e) { if (EnabledOSC == true) { CustomSlider slider = sender as CustomSlider; cd = DataContext as ChannelData; message.SendOSC(cd.Name + "/" + slider.Name, slider.Value.ToString()); } }
private void ComboBoxSelectionChanged(object sender, SelectionChangedEventArgs e) { if (EnabledOSC == true) { ComboBox combobox = sender as ComboBox; if (combobox.SelectedItem != null) { cd = DataContext as ChannelData; message.SendOSC(cd.Name + "/" + combobox.Name, combobox.SelectedItem.ToString()); } } }