C# Class Octopus.Client.Model.Forms.FormExtensions

Show file Open project: OctopusDeploy/Octo.exe

Public Methods

Method Description
AddElement ( this form, string name, Control element, string initialValue = null, bool isValueRequired = false ) : void
GetCoercedValue ( this form, string name ) : object
SetValue ( this form, string name, string value ) : void
UpdateValues ( this form, string>.IDictionary values ) : void
Validate ( this form ) : IList

Private Methods

Method Description
GetElement ( this form, string name ) : FormElement
GetRawValue ( this form, string name ) : string

Method Details

AddElement() public static method

public static AddElement ( this form, string name, Control element, string initialValue = null, bool isValueRequired = false ) : void
form this
name string
element Control
initialValue string
isValueRequired bool
return void

GetCoercedValue() public static method

public static GetCoercedValue ( this form, string name ) : object
form this
name string
return object

SetValue() public static method

public static SetValue ( this form, string name, string value ) : void
form this
name string
value string
return void

UpdateValues() public static method

public static UpdateValues ( this form, string>.IDictionary values ) : void
form this
values string>.IDictionary
return void

Validate() public static method

public static Validate ( this form ) : IList
form this
return IList