public void AddGlobalCounter() { var ret = new CounterItemModel(GlobalCounters); GlobalCounters.Add(ret); Selection = ret; RaisePropertyChanged("GlobalCounters"); }
public void AddCounter() { var ret = new CounterItemModel(); Counters.Add(ret); Selection = ret; RaisePropertyChanged("Counters"); RaisePropertyChanged("SelectedCounter"); }
public void CopyItem() { if (SelectedItem == null) { return; } var ret = new CounterItemModel(SelectedItem); ViewModelLocator.PreviewTabViewModel.Counters.Add(ret); }
public CounterItemModel(CounterItemModel c) { _counter = new Counter(); _counter.Icon = c.Icon.FullPath; _counter.Name = c.Name; _counter.Reset = c.Reset; _counter.Start = c.Default; IncreaseCommand = new RelayCommand(IncreaseValue); DecreaseCommand = new RelayCommand(DecreaseValue); }