private void _sliderPlayer_ValueChangedByUser(object sender, Myra.Utility.ValueChangedEventArgs<float> e) { if (_executionContext == null) { return; } var part = (float)(_mainPanel._sliderPlayer.Value - _mainPanel._sliderPlayer.Minimum) / (_mainPanel._sliderPlayer.Maximum - _mainPanel._sliderPlayer.Minimum); Debug.WriteLine("Rewind to {0}", part); _executionContext.PlayedPart = part; }
private void _textFilter_TextChanged(object sender, Myra.Utility.ValueChangedEventArgs<string> e) { RefreshFilesSafe(); }
private void _numericAnimationStart_ValueChanged(object sender, Myra.Utility.ValueChangedEventArgs<float?> e) { ResetAnimation(); }
private void MusicVolume_ValueChanged(object sender, Myra.Utility.ValueChangedEventArgs <float> e) { MusicVolumeLabel.Text = e.NewValue.ToString("0.0"); AudioPlayer.Instance.Volume = e.NewValue / 100; }