public void AddTimerModel(TimerModel timerModel) { timerModel.PropertyChanged += TimerModelOnPropertyChanged; Timers.Add(timerModel); Timers = new ObservableCollection<TimerModel>(Timers.OrderBy(x => x.JiraTimer.JiraReference, new JiraReferenceComparer())); if (PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs("Timers")); }
public void RemoveTimerModel(TimerModel timerModel) { Timers.Remove(timerModel); }
public void RemoveTimerModel(TimerModel timerModel) { Timers.Remove(timerModel); PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Timers))); PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Header))); }
public void RemoveTimerModel(TimerModel timerModel) { Timers.Remove(timerModel); PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Timers")); PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Header")); }