Ejemplo n.º 1
0
        // 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());
        }
Ejemplo n.º 2
0
 public StockViewModel()
 {
     //TODO: CanExecute => prüfen ob bereits vorhanden
     AddCommand = ReactiveCommand.CreateAsync(a => AddStock());
 }