C# Class BF2Statistics.MedalData.ConditionListForm

Show file Open project: BF2Statistics/ControlCenter

Protected Properties

Property Type Description
Child ConditionForm
List ConditionList
Node TreeNode
OrigList ConditionList

Public Methods

Method Description
ConditionListForm ( ConditionType Type ) : System

Constructor

ConditionListForm ( TreeNode Node ) : System

Constructor

DeleteCriteria ( ) : void

Deletes the selected criteria node

EditCriteria ( ) : void

Brings up the Criteria Editor for an Award

GetCondition ( ) : Condition

Returns the condition list in its current state

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AddNewCriteria ( object sender, FormClosingEventArgs e ) : void

Adds a new criteria to an award from the Add Critera Dialog

CancelBtn_Click ( object sender, EventArgs e ) : void
Child_FormClosing ( object sender, FormClosingEventArgs e ) : void
ConditionTree_AfterSelect ( object sender, TreeViewEventArgs e ) : void

This method builds the correct context menu options for the selected node

ConditionTree_BeforeCollapse ( object sender, TreeViewCancelEventArgs e ) : void

Disables collapsing of condition tree nodes

ConditionTree_KeyDown ( object sender, KeyEventArgs e ) : void

Keyboard events

ConditionTree_NodeMouseDoubleClick ( object sender, TreeNodeMouseClickEventArgs e ) : void

Double click on a node... opens the edit criter menu

DeleteCriteria_Click ( object sender, EventArgs e ) : void

Delete Criteria menu item click

EditCriteria_Click ( object sender, EventArgs e ) : void

Edit Criteria menu item click

EnableValue_CheckedChanged ( object sender, EventArgs e ) : void
Initialize ( ) : void

Intializes the condition tree

InitializeComponent ( ) : void

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

NewCriteria_Click ( object sender, EventArgs e ) : void

New Criteria menu item click

SaveBtn_Click ( object sender, EventArgs e ) : void
UndoChanges_Click ( object sender, EventArgs e ) : void

Undo Changes menu item click

UpdateRoot ( ) : void
ValueBox_ValueChanged ( object sender, EventArgs e ) : void

Method Details

ConditionListForm() public method

Constructor
public ConditionListForm ( ConditionType Type ) : System
Type ConditionType
return System

ConditionListForm() public method

Constructor
public ConditionListForm ( TreeNode Node ) : System
Node TreeNode
return System

DeleteCriteria() public method

Deletes the selected criteria node
public DeleteCriteria ( ) : void
return void

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

EditCriteria() public method

Brings up the Criteria Editor for an Award
public EditCriteria ( ) : void
return void

GetCondition() public method

Returns the condition list in its current state
public GetCondition ( ) : Condition
return Condition

Property Details

Child protected property

Our child form if applicable
protected ConditionForm,BF2Statistics.MedalData Child
return ConditionForm

List protected property

The condition list being edited
protected ConditionList,BF2Statistics.MedalData List
return ConditionList

Node protected property

TreeNode holding variable
protected TreeNode Node
return TreeNode

OrigList protected property

A clone of the original Condition List
protected ConditionList,BF2Statistics.MedalData OrigList
return ConditionList