public PackViewModel(IRegionManager regionManager, IHidariueService hidariueService) : base(regionManager) { this.Number = new ReactivePropertySlim <int>(0); this.AddCommand = new ReactiveCommand(); AddCommand.Subscribe(_ => { var hidariue = RandomHidariue(); hidariueService.AddCommand.Execute(hidariue); }); }
public PackViewModel(IRegionManager regionManager, IHidariueService hidariueService) : base(regionManager) { this.AddButton = hidariueService.AddCommand; }
public PackViewModel(IRegionManager regionManager, IHidariueService hidariueService) : base(regionManager) { this.Items = hidariueService.Hidariues; }