Esempio n. 1
0
 public CounterItemModel(CounterItemModel c, IdeCollection <IdeBaseItem> source) : base(source)
 {
     _counter = new Counter
     {
         Icon  = c.Asset.FullPath,
         Reset = c.Reset,
         Start = c.DefaultValue
     };
     Name            = c.Name;
     IncreaseCommand = new RelayCommand(IncreaseValue);
     DecreaseCommand = new RelayCommand(DecreaseValue);
 }
Esempio n. 2
0
 public CounterItemModel(CounterItemModel c, IdeCollection <IdeBaseItem> source) : base(source)
 {
     _counter = new Counter
     {
         Reset = c.Reset,
         Start = c.DefaultValue
     };
     Asset = new AssetController(AssetType.Image);
     Asset.Register(c._counter.Icon);
     _counter.Icon          = Asset.FullPath;
     Asset.PropertyChanged += AssetUpdated;
     Name            = c.Name;
     IncreaseCommand = new RelayCommand(IncreaseValue);
     DecreaseCommand = new RelayCommand(DecreaseValue);
 }