// ctor /// <summary> /// Initializes a new instance of the <see cref="SearchViewModel"/> class. /// </summary> /// <param name="hostScreen">The host screen.</param> public SearchViewModel(IScreen hostScreen) { HostScreen = hostScreen ?? Locator.Current.GetService <IScreen>(); CreationDate = DateTime.Now; SearchCommand = ReactiveCommand.CreateAsync(a => SearchQuote()); }
public StockViewModel() { //TODO: CanExecute => prüfen ob bereits vorhanden AddCommand = ReactiveCommand.CreateAsync(a => AddStock()); }