示例#1
0
        public FigureAbstract CreateFigure(ColorScheme ColorScheme)
        {
            FigureAbstract Out = _protoEll.Clone();

            Out.CC = ColorScheme;
            return(Out);
        }
示例#2
0
        //Для создания или удаления
        public State(HistoryList.Actions state, FigureAbstract figureState, int pos)
        {
            _figurePos = pos;
            switch (state)
            {
            case HistoryList.Actions.Create:
                _before = null;
                _after  = figureState;
                break;

            case HistoryList.Actions.Delete:
                _before = figureState;
                _after  = null;
                break;
            }
        }
示例#3
0
 //При передвижении или зменении размера
 public State(FigureAbstract before, FigureAbstract after, int pos)
 {
     _figurePos = pos;
     _before    = before.Clone();
     _after     = after.Clone();
 }
示例#4
0
 private void _SetFigureState(FigureAbstract figure, int pos)
 {
     _figures[pos] = figure;
 }