C# Class Smrf.NodeXL.GraphDataProviders.LimitToNControl

UserControl for selecting a maximum number of objects to include.
The control contains a CheckBox and a NumericUpDown control. If the checkbox is checked, the user can enter a value into the NumericUpDown control that is between 10 and MaximumN. The value is available via the N property.

Unchecking the checkbox indicates "no limit," in which case the user cannot enter a value and N is always Int32.MaxValue.

By default, the "objects" are people. If the control is being used to select a maximum number of something besides people, set the property.

This control uses the following keyboard shortcut: T

Inheritance: System.Windows.Forms.UserControl
Mostra file Open project: 2014-sed-team3/term-project

Protected Properties

Property Type Description
m_iMaximumN System.Int32

Public Methods

Method Description
LimitToNControl ( ) : System

Initializes a new instance of the LimitToNControl class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AssertValid ( ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

chkLimitToN_CheckedChanged ( object sender, EventArgs e ) : void
nudN_Validating ( object sender, System e ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

LimitToNControl() public method

Initializes a new instance of the LimitToNControl class.
public LimitToNControl ( ) : System
return System

Property Details

m_iMaximumN protected_oe property

protected Int32,System m_iMaximumN
return System.Int32