Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }