C# Class nHydrate.DslPackage.nHydrateClipboardCommandSetBase

Class containing handlers for cut/copy/paste commands supported by this DSL.
Inheritance: DslShell::ClipboardCommandSet
Show file Open project: nHydrate/nHydrate

Protected Methods

Method Description
GetMenuCommands ( ) : global::System.Collections.Generic.IList

Provide the menu commands that this command set handles

OnMenuCopy ( object sender, global args ) : void

Event handler to copy the selected objects to the clipboard.

OnMenuCut ( object sender, global args ) : void

Event handler to cut the selected objects to the clipboard then delete the original.

OnMenuPaste ( object sender, global args ) : void

Event handler to paste a copy of the object on the clipboard.

OnStatusCopy ( object sender, global args ) : void

Determines whether Copy menu item should be visible and if so, enabled.

OnStatusCut ( object sender, global args ) : void

Determines whether Cut menu item should be visible and if so, enabled.

OnStatusPaste ( object sender, global args ) : void

Updates the UI for the Paste command

nHydrateClipboardCommandSetBase ( global serviceProvider )

Constructs a new nHydrateClipboardCommandSetBase.

Method Details

GetMenuCommands() protected method

Provide the menu commands that this command set handles
protected GetMenuCommands ( ) : global::System.Collections.Generic.IList
return global::System.Collections.Generic.IList

OnMenuCopy() protected method

Event handler to copy the selected objects to the clipboard.
protected OnMenuCopy ( object sender, global args ) : void
sender object The MenuCommand selected.
args global not used
return void

OnMenuCut() protected method

Event handler to cut the selected objects to the clipboard then delete the original.
protected OnMenuCut ( object sender, global args ) : void
sender object The MenuCommand selected.
args global not used
return void

OnMenuPaste() protected method

Event handler to paste a copy of the object on the clipboard.
protected OnMenuPaste ( object sender, global args ) : void
sender object The MenuCommand selected.
args global not used
return void

OnStatusCopy() protected method

Determines whether Copy menu item should be visible and if so, enabled.
protected OnStatusCopy ( object sender, global args ) : void
sender object The sender of the message
args global empty
return void

OnStatusCut() protected method

Determines whether Cut menu item should be visible and if so, enabled.
protected OnStatusCut ( object sender, global args ) : void
sender object The sender of the message
args global empty
return void

OnStatusPaste() protected method

Updates the UI for the Paste command
protected OnStatusPaste ( object sender, global args ) : void
sender object The sender of the message
args global Message parameters
return void

nHydrateClipboardCommandSetBase() protected method

Constructs a new nHydrateClipboardCommandSetBase.
protected nHydrateClipboardCommandSetBase ( global serviceProvider )
serviceProvider global