void ExceptionService_Changed(object sender, ExceptionServiceEventArgs e) { switch (e.EventType) { case ExceptionServiceEventType.Restored: InitializeDefaultExceptions(); break; case ExceptionServiceEventType.Removed: Remove((List <ExceptionInfo>)e.Argument); break; case ExceptionServiceEventType.Added: Add((ExceptionInfo)e.Argument); break; case ExceptionServiceEventType.ExceptionInfoPropertyChanged: break; default: Debug.Fail(string.Format("Unknown type: {0}", e.EventType)); break; } }
void ExceptionService_Changed(object sender, ExceptionServiceEventArgs e) { switch (e.EventType) { case ExceptionServiceEventType.Restored: InitializeDefaultExceptions(); break; case ExceptionServiceEventType.Removed: Remove((List<ExceptionInfo>)e.Argument); break; case ExceptionServiceEventType.Added: Add((ExceptionInfo)e.Argument); break; case ExceptionServiceEventType.ExceptionInfoPropertyChanged: break; default: Debug.Fail(string.Format("Unknown type: {0}", e.EventType)); break; } }
void ExceptionService_Changed(object sender, ExceptionServiceEventArgs e) => Save();