Beispiel #1
0
        public AboutViewModel(IContainer container)
        {
            _controller        = container.Resolve <AboutController>();
            _autoUpdateService = container.Resolve <IAutoUpdateService>();

            OpenUrlCommand.Subscribe(OnOpenUrl);
        }
Beispiel #2
0
        public SearchResultViewModel(SearchResult searchResult)
        {
            _searchResult = searchResult;

            OpenUrlCommand = ReactiveCommand.Create();
            OpenUrlCommand.Subscribe(_ => OpenUrl(searchResult.Url));
        }
Beispiel #3
0
        public ManualsViewModel(IContainer container)
        {
            _controller = container.Resolve <ManualsController>();

            OpenDocumentCommand.Subscribe(OnOpenDocument);
            OpenUrlCommand.Subscribe(OnOpenUrl);
        }