C# Class BF2Statistics.MedalData.ConditionList

Inheritance: Condition
Datei anzeigen Open project: BF2Statistics/ControlCenter Class Usage Examples

Public Properties

Property Type Description
Names string>.Dictionary

Protected Properties

Property Type Description
SubConditions List

Public Methods

Method Description
Add ( Condition Condition ) : void

Adds a new sub condition under this list

Clear ( ) : void

Removes all sub-conditions under this list

Clone ( ) : object

Returns a copy (clone) of this object

ConditionList ( ConditionType Type ) : System

Constructor

GetConditions ( ) : List

Returns a list of sub-conditions under this list

GetParams ( ) : List

Returns a list of parameters for this condition

Returns ( ) : ReturnType

Returns the return value of this condition

SetParams ( List Params ) : void

Required by Condition abstract class. Donot use.

ToPython ( ) : string

Converts this list and all sub-conditions into a python string

ToTree ( ) : TreeNode

Converts the list to tree view. If there is only 1 sub criteria on an "And" or "Or" type list, then the list will not collapse into the sub criteria. Invalid Sub condition nodes will be highlighted in Red.

Protected Methods

Method Description
ValidateParam ( int ParamId, ReturnType RType ) : bool

Validates that the given parameter is a valid return type to make this condition list work properly

Method Details

Add() public method

Adds a new sub condition under this list
public Add ( Condition Condition ) : void
Condition Condition
return void

Clear() public method

Removes all sub-conditions under this list
public Clear ( ) : void
return void

Clone() public method

Returns a copy (clone) of this object
public Clone ( ) : object
return object

ConditionList() public method

Constructor
public ConditionList ( ConditionType Type ) : System
Type ConditionType The list ConditionType
return System

GetConditions() public method

Returns a list of sub-conditions under this list
public GetConditions ( ) : List
return List

GetParams() public method

Returns a list of parameters for this condition
public GetParams ( ) : List
return List

Returns() public method

Returns the return value of this condition
public Returns ( ) : ReturnType
return ReturnType

SetParams() public method

Required by Condition abstract class. Donot use.
public SetParams ( List Params ) : void
Params List Not Used in a condition list!! Use
return void

ToPython() public method

Converts this list and all sub-conditions into a python string
public ToPython ( ) : string
return string

ToTree() public method

Converts the list to tree view. If there is only 1 sub criteria on an "And" or "Or" type list, then the list will not collapse into the sub criteria. Invalid Sub condition nodes will be highlighted in Red.
public ToTree ( ) : TreeNode
return System.Windows.Forms.TreeNode

ValidateParam() protected method

Validates that the given parameter is a valid return type to make this condition list work properly
protected ValidateParam ( int ParamId, ReturnType RType ) : bool
ParamId int The current parameter index
RType ReturnType The return type if the current parameter
return bool

Property Details

Names public_oe static_oe property

A list of "ConditionType" => "Name"
public static Dictionary Names
return string>.Dictionary

SubConditions protected_oe property

List of sub conditions
protected List SubConditions
return List