C# Class SampleCsModelessForm.SampleCsModelessFormCommand

A Rhino.NET plug-in can contain as many MRhinoCommand derived classes as it wants. DO NOT create an instance of this class (this is the responsibility of Rhino.NET.) A command wizard can be found in visual studio when adding a new item to the project.
Inheritance: RMA.Rhino.MRhinoCommand
Show file Open project: mcneel/Rhino4Samples_DotNet Class Usage Examples

Public Properties

Property Type Description
_form SampleCsForm
_instance SampleCsModelessFormCommand

Public Methods

Method Description
CommandUUID ( ) : System.Guid

Rhino tracks commands by their unique ID. Every command must have a unique id. The Guid created by the project wizard is unique. You can create more Guids using the "Create Guid" tool in the Tools menu.

EnglishCommandName ( ) : string
RunCommand ( IRhinoCommandContext context ) : IRhinoCommand.result

This gets called when when the user runs this command.

SampleCsModelessFormCommand ( ) : System

Public constructor

Private Methods

Method Description
SampleCsForm_FormClosed ( object sender, System.Windows.Forms.FormClosedEventArgs e ) : void

Method Details

CommandUUID() public method

Rhino tracks commands by their unique ID. Every command must have a unique id. The Guid created by the project wizard is unique. You can create more Guids using the "Create Guid" tool in the Tools menu.
public CommandUUID ( ) : System.Guid
return System.Guid

EnglishCommandName() public method

public EnglishCommandName ( ) : string
return string

RunCommand() public method

This gets called when when the user runs this command.
public RunCommand ( IRhinoCommandContext context ) : IRhinoCommand.result
context IRhinoCommandContext
return IRhinoCommand.result

SampleCsModelessFormCommand() public method

Public constructor
public SampleCsModelessFormCommand ( ) : System
return System

Property Details

_form public static property

public static SampleCsForm,SampleCsModelessForm _form
return SampleCsForm

_instance public static property

public static SampleCsModelessFormCommand,SampleCsModelessForm _instance
return SampleCsModelessFormCommand