C# 클래스 SIL.FieldWorks.FwCoreDlgs.ErrorMessageHandler

Handles error messages and how to present them to the user via GUI
파일 보기 프로젝트 열기: sillsdev/FieldWorks

공개 메소드들

메소드 설명
AddMessage ( TextBox textBox, ErrorMessage message ) : void

Adds a single new message to a table and displays it

AddMessage ( TextBox textBox, Set messages ) : void

Adds multiple new messages to a table and displays it

AddStar ( TextBox textBox ) : void

Adds a star to the given TextBox.

ErrorMessageHandler ( Label>.Dictionary labelAssociation, Control enabledControl ) : System

Constructs a new ErrorMessageHandler (should only have one instance per dialog)

RemoveMessage ( TextBox textBox ) : void

Removes message from table of error messages

RemoveStar ( TextBox textBox ) : void

Removes the star from the given text box.

비공개 메소드들

메소드 설명
DisplayErrorTable ( ) : void

Displays all the errors that currently the user hasn't fixed, using the labels specified in the labelAssociation Dictionary.

메소드 상세

AddMessage() 공개 메소드

Adds a single new message to a table and displays it
public AddMessage ( TextBox textBox, ErrorMessage message ) : void
textBox System.Windows.Forms.TextBox The text box where the error appears
message ErrorMessage The error message you wish to add
리턴 void

AddMessage() 공개 메소드

Adds multiple new messages to a table and displays it
public AddMessage ( TextBox textBox, Set messages ) : void
textBox System.Windows.Forms.TextBox The text box where the error appears
messages Set The set of messages you wish to add
리턴 void

AddStar() 공개 메소드

Adds a star to the given TextBox.
public AddStar ( TextBox textBox ) : void
textBox System.Windows.Forms.TextBox The text box to place the star by
리턴 void

ErrorMessageHandler() 공개 메소드

Constructs a new ErrorMessageHandler (should only have one instance per dialog)
public ErrorMessageHandler ( Label>.Dictionary labelAssociation, Control enabledControl ) : System
labelAssociation Label>.Dictionary Dictionary that contains your /// textbox as a key and the associated error label
enabledControl System.Windows.Forms.Control Contains the control that we want to enable/disable /// based on whether we have errors present.
리턴 System

RemoveMessage() 공개 메소드

Removes message from table of error messages
public RemoveMessage ( TextBox textBox ) : void
textBox System.Windows.Forms.TextBox The text box associated with the errors you wish to remove
리턴 void

RemoveStar() 공개 메소드

Removes the star from the given text box.
public RemoveStar ( TextBox textBox ) : void
textBox System.Windows.Forms.TextBox The text box that may or may not have a star to remove.
리턴 void