Beispiel #1
0
        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();
        }
Beispiel #2
0
 public ExceptionHandlerModel(int index, ExceptionViewModel parentModel, ExceptionHandlerModel nextModel)
 {
     _parentModel = parentModel;
     Index        = index;
     NextModel    = nextModel;
 }