internal override object Execute(WorkspaceModel workspaceModel, bool events = true) { if (Model == null) { Model = workspaceModel.newTextModel(); } else { workspaceModel.addTextModel((TextModel)Model); } workspaceModel.OnNewChildElement(Model); return(Model); }
internal override void Undo(WorkspaceModel workspaceModel) { workspaceModel.addTextModel((TextModel)Model); workspaceModel.OnNewChildElement(Model); }