示例#1
0
 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);
 }
示例#2
0
 internal override void Undo(WorkspaceModel workspaceModel)
 {
     workspaceModel.addTextModel((TextModel)Model);
     workspaceModel.OnNewChildElement(Model);
 }