Example #1
0
        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;
            }
        }
Example #2
0
		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();
Example #4
0
 void ExceptionService_Changed(object sender, ExceptionServiceEventArgs e) => Save();