C# 클래스 pGina.Plugin.UsernameMod.Rules.ListOfRules

파일 보기 프로젝트 열기: MutonUfoAI/pgina 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Rules string[]

공개 메소드들

메소드 설명
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.

메소드 상세

Add() 공개 메소드

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

CreateRule() 공개 정적인 메소드

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
리턴 IUsernameRule

CreateRule() 공개 정적인 메소드

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
리턴 IUsernameRule

ListOfRules() 공개 메소드

public ListOfRules ( ) : System
리턴 System

Load() 공개 메소드

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

MoveDown() 공개 메소드

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
리턴 bool

MoveUp() 공개 메소드

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
리턴 bool

Save() 공개 메소드

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

remove() 공개 메소드

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

프로퍼티 상세

Rules 공개적으로 정적으로 프로퍼티

public static string[] Rules
리턴 string[]