C# Class Zetbox.Client.GUI.DialogCreatorExtensions

Show file Open project: daszat/zetbox

Public Methods

Method Description
AddBool ( this c, object key, string label, bool value = null, bool allowNullInput = false, bool isReadOnly = false, ControlKind requestedKind = null, ViewModelDescriptor vmdesc = null, string description = null, string helpText = null ) : DialogCreator
AddButton ( this c, string label, object>.Action action, string tooltip = null ) : DialogCreator
AddDateTime ( this c, object key, string label, System.DateTime value = null, System.App style = App.Base.DateTimeStyles.Date, bool allowNullInput = false, bool isReadOnly = false, ControlKind requestedKind = null, ViewModelDescriptor vmdesc = null, string description = null, string helpText = null ) : DialogCreator
AddEnumeration ( this c, object key, string label, Zetbox enumeration, int value = null, bool allowNullInput = false, bool isReadOnly = false, ControlKind requestedKind = null, ViewModelDescriptor vmdesc = null, string description = null, string helpText = null ) : DialogCreator
AddGroupBox ( this c, object key, string header, Action children, string helpText = null ) : DialogCreator
AddInt ( this c, object key, string label, int value = null, bool allowNullInput = false, bool isReadOnly = false, ControlKind requestedKind = null, ViewModelDescriptor vmdesc = null, string description = null, string helpText = null ) : DialogCreator
AddMultiLineString ( this c, object key, string label, string value = null, bool allowNullInput = false, bool isReadOnly = false, ViewModelDescriptor vmdesc = null, string description = null, string helpText = null ) : DialogCreator
AddObjectReference ( this c, object key, string label, Zetbox cls, IDataObject value = null, bool allowNullInput = false, bool isReadOnly = false, ControlKind requestedKind = null, ViewModelDescriptor vmdesc = null, string description = null, string helpText = null ) : DialogCreator
AddPassword ( this c, object key, string label, string description = null, string helpText = null ) : DialogCreator
AddString ( this c, object key, string label, string value = null, bool allowNullInput = false, bool isReadOnly = false, ControlKind requestedKind = null, ViewModelDescriptor vmdesc = null, string description = null, string helpText = null ) : DialogCreator
AddTabControl ( this c, object key, string header, Action children, string helpText = null ) : DialogCreator
AddTabItem ( this c, object key, string header, Action children, string helpText = null ) : DialogCreator
AddTextBlock ( this c, object key, string labelOrText, string value = null, string description = null, string helpText = null ) : DialogCreator
DefaultButtons ( this c, string acceptLabel, string cancelLabel ) : DialogCreator
OnAccept ( this c, object>.Action action ) : DialogCreator
OnCancel ( this c, System.Action action ) : DialogCreator
YesNo ( this c ) : DialogCreator

Method Details

AddBool() public static method

public static AddBool ( this c, object key, string label, bool value = null, bool allowNullInput = false, bool isReadOnly = false, ControlKind requestedKind = null, ViewModelDescriptor vmdesc = null, string description = null, string helpText = null ) : DialogCreator
c this
key object
label string
value bool
allowNullInput bool
isReadOnly bool
requestedKind ControlKind
vmdesc ViewModelDescriptor
description string
helpText string
return DialogCreator

AddButton() public static method

public static AddButton ( this c, string label, object>.Action action, string tooltip = null ) : DialogCreator
c this
label string
action object>.Action
tooltip string
return DialogCreator

AddDateTime() public static method

public static AddDateTime ( this c, object key, string label, System.DateTime value = null, System.App style = App.Base.DateTimeStyles.Date, bool allowNullInput = false, bool isReadOnly = false, ControlKind requestedKind = null, ViewModelDescriptor vmdesc = null, string description = null, string helpText = null ) : DialogCreator
c this
key object
label string
value System.DateTime
style System.App
allowNullInput bool
isReadOnly bool
requestedKind ControlKind
vmdesc ViewModelDescriptor
description string
helpText string
return DialogCreator

AddEnumeration() public static method

public static AddEnumeration ( this c, object key, string label, Zetbox enumeration, int value = null, bool allowNullInput = false, bool isReadOnly = false, ControlKind requestedKind = null, ViewModelDescriptor vmdesc = null, string description = null, string helpText = null ) : DialogCreator
c this
key object
label string
enumeration Zetbox
value int
allowNullInput bool
isReadOnly bool
requestedKind ControlKind
vmdesc ViewModelDescriptor
description string
helpText string
return DialogCreator

AddGroupBox() public static method

public static AddGroupBox ( this c, object key, string header, Action children, string helpText = null ) : DialogCreator
c this
key object
header string
children Action
helpText string
return DialogCreator

AddInt() public static method

public static AddInt ( this c, object key, string label, int value = null, bool allowNullInput = false, bool isReadOnly = false, ControlKind requestedKind = null, ViewModelDescriptor vmdesc = null, string description = null, string helpText = null ) : DialogCreator
c this
key object
label string
value int
allowNullInput bool
isReadOnly bool
requestedKind ControlKind
vmdesc ViewModelDescriptor
description string
helpText string
return DialogCreator

AddMultiLineString() public static method

public static AddMultiLineString ( this c, object key, string label, string value = null, bool allowNullInput = false, bool isReadOnly = false, ViewModelDescriptor vmdesc = null, string description = null, string helpText = null ) : DialogCreator
c this
key object
label string
value string
allowNullInput bool
isReadOnly bool
vmdesc ViewModelDescriptor
description string
helpText string
return DialogCreator

AddObjectReference() public static method

public static AddObjectReference ( this c, object key, string label, Zetbox cls, IDataObject value = null, bool allowNullInput = false, bool isReadOnly = false, ControlKind requestedKind = null, ViewModelDescriptor vmdesc = null, string description = null, string helpText = null ) : DialogCreator
c this
key object
label string
cls Zetbox
value IDataObject
allowNullInput bool
isReadOnly bool
requestedKind ControlKind
vmdesc ViewModelDescriptor
description string
helpText string
return DialogCreator

AddPassword() public static method

public static AddPassword ( this c, object key, string label, string description = null, string helpText = null ) : DialogCreator
c this
key object
label string
description string
helpText string
return DialogCreator

AddString() public static method

public static AddString ( this c, object key, string label, string value = null, bool allowNullInput = false, bool isReadOnly = false, ControlKind requestedKind = null, ViewModelDescriptor vmdesc = null, string description = null, string helpText = null ) : DialogCreator
c this
key object
label string
value string
allowNullInput bool
isReadOnly bool
requestedKind ControlKind
vmdesc ViewModelDescriptor
description string
helpText string
return DialogCreator

AddTabControl() public static method

public static AddTabControl ( this c, object key, string header, Action children, string helpText = null ) : DialogCreator
c this
key object
header string
children Action
helpText string
return DialogCreator

AddTabItem() public static method

public static AddTabItem ( this c, object key, string header, Action children, string helpText = null ) : DialogCreator
c this
key object
header string
children Action
helpText string
return DialogCreator

AddTextBlock() public static method

public static AddTextBlock ( this c, object key, string labelOrText, string value = null, string description = null, string helpText = null ) : DialogCreator
c this
key object
labelOrText string
value string
description string
helpText string
return DialogCreator

DefaultButtons() public static method

public static DefaultButtons ( this c, string acceptLabel, string cancelLabel ) : DialogCreator
c this
acceptLabel string
cancelLabel string
return DialogCreator

OnAccept() public static method

public static OnAccept ( this c, object>.Action action ) : DialogCreator
c this
action object>.Action
return DialogCreator

OnCancel() public static method

public static OnCancel ( this c, System.Action action ) : DialogCreator
c this
action System.Action
return DialogCreator

YesNo() public static method

public static YesNo ( this c ) : DialogCreator
c this
return DialogCreator