C# Class pGina.Plugin.UsernameMod.Rules.ListOfRules

Datei anzeigen Open project: MutonUfoAI/pgina Class Usage Examples

Public Properties

Property Type Description
Rules string[]

Public Methods

Method Description
Add ( IUsernameRule rule ) : void

Adds a rule to the list, putting it at the end of the stage

CreateRule ( Stage stage, string action, string val1, string val2 ) : IUsernameRule

Creates an IUsernameRule based on the Stage value, and string representation of the rule

CreateRule ( string stage, string action, string val1, string val2 ) : IUsernameRule

Creates a IUsernameRule based on the string representation of the stage, action, and values.

ListOfRules ( ) : System
Load ( ) : void

Loads the rules from the register into list.

MoveDown ( int index ) : bool

Moves the rule at the specified index down one (e.g. index=2 becomes index=3). Will not move an item if it's at the bottom, or if it will be below a rule with a later step. (e.g. An authorization rule will not move below a gateway rule)

MoveUp ( int index ) : bool

Moves the rule at the specified index up one (e.g. index=2 becomes index=1). Will not move an item if it's at the top, or if it will be above a rule with an earlier step. (e.g. A gateway rule can not be above a authorization rule)

Save ( ) : void

Saves the list of rules to the registry.

remove ( int index ) : void

Removes the rule at the specified index.

Method Details

Add() public method

Adds a rule to the list, putting it at the end of the stage
public Add ( IUsernameRule rule ) : void
rule IUsernameRule
return void

CreateRule() public static method

Creates an IUsernameRule based on the Stage value, and string representation of the rule
public static CreateRule ( Stage stage, string action, string val1, string val2 ) : IUsernameRule
stage Stage
action string
val1 string
val2 string
return IUsernameRule

CreateRule() public static method

Creates a IUsernameRule based on the string representation of the stage, action, and values.
public static CreateRule ( string stage, string action, string val1, string val2 ) : IUsernameRule
stage string
action string
val1 string
val2 string
return IUsernameRule

ListOfRules() public method

public ListOfRules ( ) : System
return System

Load() public method

Loads the rules from the register into list.
public Load ( ) : void
return void

MoveDown() public method

Moves the rule at the specified index down one (e.g. index=2 becomes index=3). Will not move an item if it's at the bottom, or if it will be below a rule with a later step. (e.g. An authorization rule will not move below a gateway rule)
public MoveDown ( int index ) : bool
index int
return bool

MoveUp() public method

Moves the rule at the specified index up one (e.g. index=2 becomes index=1). Will not move an item if it's at the top, or if it will be above a rule with an earlier step. (e.g. A gateway rule can not be above a authorization rule)
public MoveUp ( int index ) : bool
index int
return bool

Save() public method

Saves the list of rules to the registry.
public Save ( ) : void
return void

remove() public method

Removes the rule at the specified index.
public remove ( int index ) : void
index int
return void

Property Details

Rules public_oe static_oe property

public static string[] Rules
return string[]