internal void NotifySelectionChanged(object ob, bool canCut, bool canCopy, bool canPaste, bool canDelete) { this.canCut = canCut; this.canCopy = canCopy; this.canPaste = canPaste; this.canDelete = canDelete; if (ob != null) selection = app.GetComponent (ob, null, null); else selection = null; if (SelectionChanged != null) SelectionChanged (this, EventArgs.Empty); }
internal void NotifySelectionChanged(object ob, bool canCut, bool canCopy, bool canPaste, bool canDelete) { GuiDispatch.InvokeSync( delegate { if (!disposed) { designer.NotifySelectionChanged(ob, canCut, canCopy, canPaste, canDelete); } } ); }