public MainWindowViewModel( ILogger logger, IExtendedDialogService dialogService, IApiService apiService, IGithubService githubService, ICredentialService credentialService, IStreamlinkLauncher streamlinkLauncher, ISettings settings, IVideoDialogLayout videoDialogLayout) : base(logger) { _dialogService = dialogService; _apiService = apiService; _githubService = githubService; _credentialService = credentialService; _streamlinkLauncher = streamlinkLauncher; Settings = settings; VideoDialogLayout = videoDialogLayout; }
public MainWindowViewModel( ILogger logger, IExtendedDialogService dialogService, IApiService apiService, IGithubService githubService, ICredentialService credentialService, IStreamlinkLauncher streamlinkLauncher, ISettings settings, IVideoDialogLayout videoDialogLayout) : base(logger) { _dialogService = dialogService; _apiService = apiService; _githubService = githubService; _credentialService = credentialService; _streamlinkLauncher = streamlinkLauncher; Settings = settings; VideoDialogLayout = videoDialogLayout; EpisodesView = CollectionViewSource.GetDefaultView(Episodes); EpisodesView.Filter = (episode) => string.IsNullOrEmpty(EpisodeFilterText) || episode.ToString().Contains(EpisodeFilterText, StringComparison.OrdinalIgnoreCase); }