private static bool ValidateSpecifier(DataGridViewCell cell, string value)
        {
            if (VideoSpecifier.IsValid(value))
            {
                return(true);
            }

            cell.ErrorText = "Error: Invalid video type specifier - see usage tips";
            return(false);
        }
Beispiel #2
0
        private void MediaLoaded(object sender, EventArgs eventArgs)
        {
            PlayerControl.PlaybackBaseRate = 1.0;

            if (!Settings.Activate)
            {
                return;
            }

            var tuning = Settings.Tunings.FirstOrDefault(t => VideoSpecifier.Match(t.Specifier));

            PlayerControl.PlaybackBaseRate = tuning == null ? 1.0 : tuning.Rate;
        }