示例#1
0
        public void DeleteElementVerticalBarrier(ElementModel elementModel)
        {
            Logger.Info("Delete Element Vertical Barrier in Cabinet");
            Logger.Debug("Delete Element Vertical Barrier count: {0}", elementModel.ToString());
            try
            {
                VerticalBarrier = _mapper.Map <List <ElementModel> >(VerticalBarrierFactory.Delete(_mapper.Map <ElementModelDTO>(elementModel)));
            }
            catch (Exception ex)
            {
                Logger.Error(ex, "Error Delete Element Vertical Barrier in Cabinet");
            }

            RecalculateHorizontalBarrier();
        }
示例#2
0
        public void DeleteVerticalBarrier(int i)
        {
            Logger.Info("Delete Vertical Barrier in Cabinet");
            Logger.Debug("Delete Vertical Barrier count: {0}", i);
            try
            {
                VerticalBarrier = _mapper.Map <List <ElementModel> >(VerticalBarrierFactory.Delete(i));
            }
            catch (Exception ex)
            {
                Logger.Error(ex, "Error Delete Vertical Barrier");
            }

            RecalculateHorizontalBarrier();
        }