Stetic.WidgetDesigner.NotifySelectionChanged C# (CSharp) Method

NotifySelectionChanged() private method

private NotifySelectionChanged ( object ob, bool canCut, bool canCopy, bool canPaste, bool canDelete ) : void
ob object
canCut bool
canCopy bool
canPaste bool
canDelete bool
return void
        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);
        }

Usage Example

Example #1
0
 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);
                    }
         }
         );
 }