상속: INotifyPropertyChanged
예제 #1
0
 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"));
 }
예제 #2
0
 public void RemoveTimerModel(TimerModel timerModel)
 {
     Timers.Remove(timerModel);
 }
예제 #3
0
 public void RemoveTimerModel(TimerModel timerModel)
 {
     Timers.Remove(timerModel);
     PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Timers)));
     PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Header)));
 }
예제 #4
0
 public void RemoveTimerModel(TimerModel timerModel)
 {
     Timers.Remove(timerModel);
     PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Timers"));
     PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Header"));
 }
예제 #5
0
 public void RemoveTimerModel(TimerModel timerModel)
 {
     Timers.Remove(timerModel);
     PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Timers"));
     PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Header"));
 }
예제 #6
0
 public void RemoveTimerModel(TimerModel timerModel)
 {
     Timers.Remove(timerModel);
 }