Ejemplo n.º 1
0
        public FigureAbstract CreateFigure(ColorScheme ColorScheme)
        {
            FigureAbstract Out = _protoEll.Clone();

            Out.CC = ColorScheme;
            return(Out);
        }
Ejemplo n.º 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;
            }
        }
Ejemplo n.º 3
0
 //При передвижении или зменении размера
 public State(FigureAbstract before, FigureAbstract after, int pos)
 {
     _figurePos = pos;
     _before    = before.Clone();
     _after     = after.Clone();
 }
Ejemplo n.º 4
0
 private void _SetFigureState(FigureAbstract figure, int pos)
 {
     _figures[pos] = figure;
 }