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