C# Class BF2Statistics.MedalData.ConditionList

Inheritance: Condition
Afficher le fichier Open project: BF2Statistics/ControlCenter Class Usage Examples

Méthodes publiques

Свойство Type Description
Names string>.Dictionary

Protected Properties

Свойство Type Description
SubConditions List

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

Adds a new sub condition under this list
public Add ( Condition Condition ) : void
Condition Condition
Résultat void

Clear() public méthode

Removes all sub-conditions under this list
public Clear ( ) : void
Résultat void

Clone() public méthode

Returns a copy (clone) of this object
public Clone ( ) : object
Résultat object

ConditionList() public méthode

Constructor
public ConditionList ( ConditionType Type ) : System
Type ConditionType The list ConditionType
Résultat System

GetConditions() public méthode

Returns a list of sub-conditions under this list
public GetConditions ( ) : List
Résultat List

GetParams() public méthode

Returns a list of parameters for this condition
public GetParams ( ) : List
Résultat List

Returns() public méthode

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

SetParams() public méthode

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

ToPython() public méthode

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

ToTree() public méthode

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
Résultat System.Windows.Forms.TreeNode

ValidateParam() protected méthode

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
Résultat bool

Property Details

Names public_oe static_oe property

A list of "ConditionType" => "Name"
public static Dictionary Names
Résultat string>.Dictionary

SubConditions protected_oe property

List of sub conditions
protected List SubConditions
Résultat List