C# 클래스 Revit.SDK.Samples.GridCreation.CS.Validation

Class to validate input data before creating grids
파일 보기 프로젝트 열기: AMEE/revit

공개 메소드들

메소드 설명
ShowWarningMessage ( String message, String caption ) : void

Show a warning message box

ValidateCoord ( Control coordCtrl ) : bool

Validate coordinate value

ValidateDegree ( Control degreeCtrl ) : bool

Validate degree value

ValidateDegrees ( Control startDegree, Control endDegree ) : bool

Validate start degree and end degree

ValidateLabel ( Control labelCtrl, ArrayList allLabels ) : bool

Validate label

ValidateLabels ( Control label1Ctrl, Control label2Ctrl ) : bool

Assure two labels are not same

ValidateLength ( Control lengthCtrl, String typeName, bool canBeZero ) : bool

Validate length value

ValidateNotNull ( Control control, String typeName ) : bool

Assure value is not null

ValidateNumber ( Control numberCtrl ) : bool

Validate number value

ValidateNumbers ( Control number1Ctrl, Control number2Ctrl ) : bool

Validate numbers in UI

메소드 상세

ShowWarningMessage() 공개 정적인 메소드

Show a warning message box
public static ShowWarningMessage ( String message, String caption ) : void
message String Message
caption String title of message box
리턴 void

ValidateCoord() 공개 정적인 메소드

Validate coordinate value
public static ValidateCoord ( Control coordCtrl ) : bool
coordCtrl System.Windows.Forms.Control Control contains coordinate information
리턴 bool

ValidateDegree() 공개 정적인 메소드

Validate degree value
public static ValidateDegree ( Control degreeCtrl ) : bool
degreeCtrl System.Windows.Forms.Control Control contains degree information
리턴 bool

ValidateDegrees() 공개 정적인 메소드

Validate start degree and end degree
public static ValidateDegrees ( Control startDegree, Control endDegree ) : bool
startDegree System.Windows.Forms.Control Control contains start degree information
endDegree System.Windows.Forms.Control Control contains end degree information
리턴 bool

ValidateLabel() 공개 정적인 메소드

Validate label
public static ValidateLabel ( Control labelCtrl, ArrayList allLabels ) : bool
labelCtrl System.Windows.Forms.Control Control contains label information
allLabels System.Collections.ArrayList List contains all labels in Revit document
리턴 bool

ValidateLabels() 공개 정적인 메소드

Assure two labels are not same
public static ValidateLabels ( Control label1Ctrl, Control label2Ctrl ) : bool
label1Ctrl System.Windows.Forms.Control Control contains label information
label2Ctrl System.Windows.Forms.Control Control contains label information
리턴 bool

ValidateLength() 공개 정적인 메소드

Validate length value
public static ValidateLength ( Control lengthCtrl, String typeName, bool canBeZero ) : bool
lengthCtrl System.Windows.Forms.Control Control contains length information
typeName String Type of length
canBeZero bool Whether the length can be zero
리턴 bool

ValidateNotNull() 공개 정적인 메소드

Assure value is not null
public static ValidateNotNull ( Control control, String typeName ) : bool
control System.Windows.Forms.Control Control contains information needs to be checked
typeName String Type of information
리턴 bool

ValidateNumber() 공개 정적인 메소드

Validate number value
public static ValidateNumber ( Control numberCtrl ) : bool
numberCtrl System.Windows.Forms.Control Control contains number information
리턴 bool

ValidateNumbers() 공개 정적인 메소드

Validate numbers in UI
public static ValidateNumbers ( Control number1Ctrl, Control number2Ctrl ) : bool
number1Ctrl System.Windows.Forms.Control Control contains number information
number2Ctrl System.Windows.Forms.Control Control contains another number information
리턴 bool