public AboutViewModel(IContainer container) { _controller = container.Resolve <AboutController>(); _autoUpdateService = container.Resolve <IAutoUpdateService>(); OpenUrlCommand.Subscribe(OnOpenUrl); }
public SearchResultViewModel(SearchResult searchResult) { _searchResult = searchResult; OpenUrlCommand = ReactiveCommand.Create(); OpenUrlCommand.Subscribe(_ => OpenUrl(searchResult.Url)); }
public ManualsViewModel(IContainer container) { _controller = container.Resolve <ManualsController>(); OpenDocumentCommand.Subscribe(OnOpenDocument); OpenUrlCommand.Subscribe(OnOpenUrl); }