public void Copy() { var canvas = Context.CurrentCanvas; string model = ModelEditor.Generate(ModelEditor.GetSelected(canvas)); if (model.Length == 0) { model = ModelEditor.GenerateDiagram(canvas, null, canvas.GetProperties()); } ClipboardSetText(model); }
public IEnumerable <IElement> GetElementsSelected() { return(ModelEditor.GetSelected(Context.CurrentCanvas)); }
public void Delete() { Delete(Context.CurrentCanvas, ModelEditor.GetSelected(Context.CurrentCanvas)); }