private void CreateHandlers(int handlerCount) { ExceptionHandlerModel lastM = null; List <ExceptionHandlerModel> handlers = new List <Models.ExceptionHandlerModel>(); for (int i = handlerCount; i > 0; --i) { ExceptionHandlerModel ehm = new Models.ExceptionHandlerModel(i, this, lastM); _handlerModels.Add(ehm); lastM = ehm; } _handlerModels.Reverse(); }
public ExceptionHandlerModel(int index, ExceptionViewModel parentModel, ExceptionHandlerModel nextModel) { _parentModel = parentModel; Index = index; NextModel = nextModel; }