public FolderBrowser() { _ = applyTemplateSubject.SelectMany(a => ButtonOne.ToClicks()) .Select(a => OpenDialog(string.Empty, string.Empty)) .Where(output => output.result ?? false) .ObserveOnDispatcher() .Select(output => output.path) .Subscribe(textChanges.OnNext); }
public FileBrowser() { _ = applyTemplateSubject.Select(a => ButtonOne.ToClicks()) .SelectMany(a => a) .CombineLatest(filterChanges.StartWith(Filter).DistinctUntilChanged(), extensionChanges.StartWith(Extension).DistinctUntilChanged(), (a, b, c) => OpenDialog(b, c)) .Where(output => output.result ?? false) .ObserveOnDispatcher() .Select(output => output.path) .Subscribe(textChanges.OnNext); }