public void GetPrevious(LogActs log, IFigure figure, bool isNew = true) { if (isNew) { log.New = figure; } else { log.Previous = figure; } }
public void WriteLogsBack(IFigure figure, bool isNew) { if (!isNew) { WriteActsPrevious(figure, false); } else { _log.GetPrevious(_log, figure, false); LogsBack.Add(_log); _log = new LogActs(); } }