C# 클래스 BF2Statistics.MedalData.MedalDataEditor

상속: System.Windows.Forms.Form
파일 보기 프로젝트 열기: BF2Statistics/ControlCenter 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ChangesMade bool
PythonPath string
SelectedAward IAward

보호된 프로퍼티들

프로퍼티 타입 설명
ActiveProfile string
Child ConditionForm
ConditionNode System.Windows.Forms.TreeNode
LastSelectedProfile string
SelectedAwardNode System.Windows.Forms.TreeNode

공개 메소드들

메소드 설명
DeleteCriteria ( ) : void

Removes a criteria from the selected awards condition tree

EditCriteria ( ) : void

Brings up the Criteria Editor for the selected Award Condition Node

MedalDataEditor ( ) : System

Constructor

SetAwardImage ( string name ) : void

Sets the award image based on the Award ID Passed

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

LoadProfiles ( ) : void

Scans the stats directory, and adds each found medal data profile to the profile selector

ValidateConditions ( TreeNode AwardNode, Condition Con ) : void

This method is used to highlight the invalid condition nodes of the current selected AwardNode, to let the user know that the conditions selected wont work properly when loaded by the server

Applies highlighting from the Award Node => to => The Root Node

비공개 메소드들

메소드 설명
ActivateProfileBtn_Click ( object sender, EventArgs e ) : void

Activates the current profile within the BF2StatisticsConfig.py

AddNewCriteria ( object sender, FormClosingEventArgs e ) : void

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

AwardConditionsTree_AfterSelect ( object sender, TreeViewEventArgs e ) : void

Assigns the correct Context menu options based on the selected node

AwardConditionsTree_BeforeCollapse ( object sender, System.Windows.Forms.TreeViewCancelEventArgs e ) : void

Disables collapsing of condition tree nodes

AwardConditionsTree_KeyDown ( object sender, KeyEventArgs e ) : void

Allows enter and delete keys to edit and delete criteria

AwardConditionsTree_NodeMouseDoubleClick ( object sender, TreeNodeMouseClickEventArgs e ) : void

Allows edit of criteria's on double mouse click

AwardTree_AfterSelect ( object sender, TreeViewEventArgs e ) : void

An event called everytime a new award is selected... It repaints the current award info

DelProfileBtn_Click ( object sender, EventArgs e ) : void

Deletes the selected profile

DeleteCriteriaMenuItem_Click ( object sender, EventArgs e ) : void

When the delete option is pressed, removes the criteria

EditCriteriaMenuItem_Click ( object sender, EventArgs e ) : void

Edit Criteria option Click

InitializeComponent ( ) : void

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

NewCriteriaMenuItem_Click ( object sender, EventArgs e ) : void

Adding a new Criteria

NewCriteria_Closing ( object sender, FormClosingEventArgs e ) : void

Shows the correct new criteria screen when the uesr selects which type.

NewProfileBtn_Click ( object sender, EventArgs e ) : void

Opens the dialog to create a new profile

ProfileSelector_SelectedIndexChanged ( object sender, EventArgs e ) : void

This method is called upon selecting a new Medal Data Profile. It loads the new medal data, and calls the parser to parse it.

RestoreToDefaultMenuItem_Click ( object sender, EventArgs e ) : void

Restores the condition / criteria back to default (vanilla)

SaveButton_Click ( object sender, EventArgs e ) : void

Saves the medal data to a file

UndoAllChangesMenuItem_Click ( object sender, EventArgs e ) : void

When the Undo Changes menu option is selected, this method reverts any changes made to the current condition list

ValidateConditions ( ) : void

This method is used to highlight the invalid condition nodes in the conditions treeview, as to let the user know that the conditions selected wont work properly when loaded by the server

Applies highlighting from the Root Nodes => to => The Award Nodes

메소드 상세

DeleteCriteria() 공개 메소드

Removes a criteria from the selected awards condition tree
public DeleteCriteria ( ) : void
리턴 void

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
리턴 void

EditCriteria() 공개 메소드

Brings up the Criteria Editor for the selected Award Condition Node
public EditCriteria ( ) : void
리턴 void

LoadProfiles() 보호된 메소드

Scans the stats directory, and adds each found medal data profile to the profile selector
protected LoadProfiles ( ) : void
리턴 void

MedalDataEditor() 공개 메소드

Constructor
public MedalDataEditor ( ) : System
리턴 System

SetAwardImage() 공개 메소드

Sets the award image based on the Award ID Passed
public SetAwardImage ( string name ) : void
name string The Award ID
리턴 void

ValidateConditions() 보호된 메소드

This method is used to highlight the invalid condition nodes of the current selected AwardNode, to let the user know that the conditions selected wont work properly when loaded by the server
Applies highlighting from the Award Node => to => The Root Node
protected ValidateConditions ( TreeNode AwardNode, Condition Con ) : void
AwardNode System.Windows.Forms.TreeNode
Con Condition
리턴 void

프로퍼티 상세

ActiveProfile 보호되어 있는 프로퍼티

The current active profile in the BF2sConfig.py
protected string ActiveProfile
리턴 string

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

Indicates whether changes have been made to any criteria
public static bool ChangesMade
리턴 bool

Child 보호되어 있는 프로퍼티

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

ConditionNode 보호되어 있는 프로퍼티

The highlighted Award condition node (if any)
protected TreeNode,System.Windows.Forms ConditionNode
리턴 System.Windows.Forms.TreeNode

LastSelectedProfile 보호되어 있는 프로퍼티

Indicates the last selected profile
protected string LastSelectedProfile
리턴 string

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

The full path to the "stats" python folder
public static string PythonPath
리턴 string

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

The current selected award
public static IAward SelectedAward
리턴 IAward

SelectedAwardNode 보호되어 있는 프로퍼티

The current selected award node
protected TreeNode,System.Windows.Forms SelectedAwardNode
리턴 System.Windows.Forms.TreeNode