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); }
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; }