C# Class Forex_Strategy_Builder.Instrument_Editor

Instrument Editor
Inheritance: System.Windows.Forms.Form
Show file Open project: nuggett11/Forex-Strategy-Builder Class Usage Examples

Public Methods

Method Description
Instrument_Editor ( ) : System

Constructor

Protected Methods

Method Description
OnLoad ( EventArgs e ) : void

Performs initialization.

OnPaint ( PaintEventArgs e ) : void

Form On Paint

OnResize ( EventArgs e ) : void

Recalculates the sizes and positions of the controls after resizing.

Private Methods

Method Description
BtnAccept_Click ( object sender, EventArgs e ) : void

BtnAccept Clicked.

BtnAddInstrAdd_Click ( object sender, EventArgs e ) : void

BtnAdd Clicked.

BtnDelete_Click ( object sender, EventArgs e ) : void

BtnDelete Clicked.

BtnDown_Click ( object sender, EventArgs e ) : void

BtnDown Clicked.

BtnUp_Click ( object sender, EventArgs e ) : void

BtnUp Clicked.

CbxPropCommission_SelectedIndexChanged ( object sender, EventArgs e ) : void

Checks the commission time

Instrument_Editor_FormClosing ( object sender, FormClosingEventArgs e ) : void

Check whether the restart is necessary.

LbxInstruments_SelectedValueChanged ( object sender, EventArgs e ) : void

The lbxInstruments selected index changed

NudPropDigits_ValueChanged ( object sender, EventArgs e ) : void

Digit changed

SetAcountExchangeRate ( ) : void

Calculates the account exchange rate.

SetPropertiesForm ( ) : void

Sets the properties form.

SetSelectedInstrument ( ) : void

Sets the properties form.

TbxPropFileName_TextChanged ( object sender, EventArgs e ) : void

Sets the data file names.

TbxPropPriceIn_TextChanged ( object sender, EventArgs e ) : void

Checks the instrument currency.

ValidatePropertiesForm ( ) : bool

Validates the instrument properties

ValidateSymbol ( string symbol, Instrumet_Type instrType ) : bool

Validates the instrument properties

X ( int i ) : int

Gives the horizontal position.

Y ( int i ) : int

Gives the vertical position.

nudPropAccountRate_ValueChanged ( object sender, EventArgs e ) : void

Method Details

Instrument_Editor() public method

Constructor
public Instrument_Editor ( ) : System
return System

OnLoad() protected method

Performs initialization.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void

OnPaint() protected method

Form On Paint
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnResize() protected method

Recalculates the sizes and positions of the controls after resizing.
protected OnResize ( EventArgs e ) : void
e System.EventArgs
return void