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