예제 #1
0
 private void BtnUpdateInfo_Click(object sender, EventArgs e)
 {
     UpdateInfo.Invoke(sender, e);
 }
 private void ThreatEventRemoved([NotNull] IThreatEventsContainer container, [NotNull] IThreatEvent threatEvent)
 {
     threatEvent.ThreatEventMitigationAdded   -= Update;
     threatEvent.ThreatEventMitigationRemoved -= Update;
     UpdateInfo?.Invoke(this.GetExtensionId(), CurrentStatus);
 }
 private void Update([NotNull] IThreatEventsContainer container, [NotNull] IThreatEvent threatEvent)
 {
     // ReSharper disable once SuspiciousTypeConversion.Global
     ((INotifyPropertyChanged)threatEvent).PropertyChanged += OnPropertyChanged;
     UpdateInfo?.Invoke(this.GetExtensionId(), CurrentStatus);
 }
예제 #4
0
 private void Update(IThreatTypeMitigationsContainer arg1, IThreatTypeMitigation arg2)
 {
     UpdateInfo?.Invoke(this.GetExtensionId(), CurrentStatus);
 }
예제 #5
0
 private void Update(IThreatEventMitigationsContainer container, IThreatEventMitigation mitigation)
 {
     UpdateInfo?.Invoke(this.GetExtensionId(), CurrentStatus);
 }
예제 #6
0
 private void Update([NotNull] IThreatEventsContainer container, [NotNull] IThreatEvent threatEvent)
 {
     UpdateInfo?.Invoke(this.GetExtensionId(), CurrentStatus);
 }