Example #1
0
 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);
     });
 }
Example #2
0
 public PackViewModel(IRegionManager regionManager, IHidariueService hidariueService) :
     base(regionManager)
 {
     this.AddButton = hidariueService.AddCommand;
 }
Example #3
0
 public PackViewModel(IRegionManager regionManager, IHidariueService hidariueService) :
     base(regionManager)
 {
     this.Items = hidariueService.Hidariues;
 }