C# Class Forex_Strategy_Builder.Strategy_Layout

Represents the strategies slots into a readable form
Inheritance: System.Windows.Forms.Panel
Exibir arquivo Open project: nuggett11/Forex-Strategy-Builder Class Usage Examples

Public Properties

Property Type Description
abtnRemoveSlot System.Windows.Forms.Button[]
apnlSlot System.Windows.Forms.Panel[]
btnAddCloseFilter System.Windows.Forms.Button
btnAddOpenFilter System.Windows.Forms.Button
pnlProperties System.Windows.Forms.Panel

Public Methods

Method Description
ArrangeStrategyControls ( ) : void

Calculates the position of the controls

BtnClosingFilterHelp_Click ( object sender, EventArgs e ) : void

Shows Closing Filter Help.

InitializeStrategySlots ( ) : void

Initializes the strategy slots

PnlProperties_Paint ( object sender, PaintEventArgs e ) : void

Panel properties Paint

PnlSlot_Paint ( object sender, PaintEventArgs e ) : void

Panel Slot Paint

PnlSlot_Resize ( object sender, EventArgs e ) : void

Panel Strategy Resize

RearangeStrategyControls ( ) : void

Rearranges all controls in panel Strategy

RebuildStrategyControls ( Strategy strategy ) : void

Rebuilds all the controls in panel Strategy

RepaintStrategyControls ( Strategy strategy ) : void

Repaints the strategy slots

Strategy_Layout ( Strategy strategy ) : System

Initializes the strategy field

VScrollBarStrategy_Scroll ( object sender, ScrollEventArgs e ) : void

Protected Methods

Method Description
OnResize ( EventArgs eventargs ) : void

Arranges the controls after resizing

SetAddSlotButtons ( ) : void

Sets add new slot buttons

Private Methods

Method Description
PnlPropertiesCalculateHeight ( int width ) : int

Calculates the height of the Averaging Panel

PnlSlotCalculateHeight ( int slot, int width ) : int

Calculates the height of the Panel Slot

PnlSlotCalculateTotalHeight ( int width ) : int

Calculates the total height of the Panel Slot

Method Details

ArrangeStrategyControls() public method

Calculates the position of the controls
public ArrangeStrategyControls ( ) : void
return void

BtnClosingFilterHelp_Click() public method

Shows Closing Filter Help.
public BtnClosingFilterHelp_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

InitializeStrategySlots() public method

Initializes the strategy slots
public InitializeStrategySlots ( ) : void
return void

OnResize() protected method

Arranges the controls after resizing
protected OnResize ( EventArgs eventargs ) : void
eventargs System.EventArgs
return void

PnlProperties_Paint() public method

Panel properties Paint
public PnlProperties_Paint ( object sender, PaintEventArgs e ) : void
sender object
e PaintEventArgs
return void

PnlSlot_Paint() public method

Panel Slot Paint
public PnlSlot_Paint ( object sender, PaintEventArgs e ) : void
sender object
e PaintEventArgs
return void

PnlSlot_Resize() public method

Panel Strategy Resize
public PnlSlot_Resize ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

RearangeStrategyControls() public method

Rearranges all controls in panel Strategy
public RearangeStrategyControls ( ) : void
return void

RebuildStrategyControls() public method

Rebuilds all the controls in panel Strategy
public RebuildStrategyControls ( Strategy strategy ) : void
strategy Strategy
return void

RepaintStrategyControls() public method

Repaints the strategy slots
public RepaintStrategyControls ( Strategy strategy ) : void
strategy Strategy The strategy
return void

SetAddSlotButtons() protected method

Sets add new slot buttons
protected SetAddSlotButtons ( ) : void
return void

Strategy_Layout() public method

Initializes the strategy field
public Strategy_Layout ( Strategy strategy ) : System
strategy Strategy
return System

VScrollBarStrategy_Scroll() public method

public VScrollBarStrategy_Scroll ( object sender, ScrollEventArgs e ) : void
sender object
e System.Windows.Forms.ScrollEventArgs
return void

Property Details

abtnRemoveSlot public_oe property

public Button[],System.Windows.Forms abtnRemoveSlot
return System.Windows.Forms.Button[]

apnlSlot public_oe property

public Panel[],System.Windows.Forms apnlSlot
return System.Windows.Forms.Panel[]

btnAddCloseFilter public_oe property

public Button,System.Windows.Forms btnAddCloseFilter
return System.Windows.Forms.Button

btnAddOpenFilter public_oe property

public Button,System.Windows.Forms btnAddOpenFilter
return System.Windows.Forms.Button

pnlProperties public_oe property

public Panel,System.Windows.Forms pnlProperties
return System.Windows.Forms.Panel