C# Class Habanero.Faces.Base.DateTimePickerManager

This manager groups common logic for IDateTimePicker control. Do not use this object in working code - rather call CreateDateTimePicker in the appropriate control factory.
Show file Open project: Chillisoft/habanero.faces Class Usage Examples

Private Properties

Property Type Description
ApplyBlankFormat bool
ApplyValueFormat bool
FireValueChanged void
GetDateTimePickerValue System.DateTime
IsNull bool
ResizeNullDisplayBox void
SetDateTimePickerValue void
SetupNullDisplayBox void

Public Methods

Method Description
ChangeToNullMode ( ) : bool

Changes the DatetTimePicker control to the null mode

ChangeToValueMode ( ) : bool

Changes the DatetTimePicker control to the value mode

DateTimePickerManager ( IControlFactory controlFactory, IDateTimePicker dateTimePicker, ValueGetter valueGetter, ValueSetter valueSetter ) : System

The Constructor for the DateTimePickerManager

OnResize ( EventArgs eventargs ) : void

Handles the event of the DateTimePicker's size being changed

OnValueChanged ( EventArgs eventArgs ) : void

Handles the event of the DateTime value being changed

UpdateFocusState ( ) : void

Updates the Focus state for the control

Private Methods

Method Description
ApplyBlankFormat ( ) : bool
ApplyValueFormat ( ) : bool
FireValueChanged ( ) : void
GetDateTimePickerValue ( ) : System.DateTime
IsNull ( ) : bool

Occurs when the Value property changes.

ResizeNullDisplayBox ( ) : void
SetDateTimePickerValue ( System.DateTime value ) : void
SetupNullDisplayBox ( ) : void

Method Details

ChangeToNullMode() public method

Changes the DatetTimePicker control to the null mode
public ChangeToNullMode ( ) : bool
return bool

ChangeToValueMode() public method

Changes the DatetTimePicker control to the value mode
public ChangeToValueMode ( ) : bool
return bool

DateTimePickerManager() public method

The Constructor for the DateTimePickerManager
public DateTimePickerManager ( IControlFactory controlFactory, IDateTimePicker dateTimePicker, ValueGetter valueGetter, ValueSetter valueSetter ) : System
controlFactory IControlFactory
dateTimePicker IDateTimePicker
valueGetter ValueGetter
valueSetter ValueSetter
return System

OnResize() public method

Handles the event of the DateTimePicker's size being changed
public OnResize ( EventArgs eventargs ) : void
eventargs System.EventArgs
return void

OnValueChanged() public method

Handles the event of the DateTime value being changed
public OnValueChanged ( EventArgs eventArgs ) : void
eventArgs System.EventArgs
return void

UpdateFocusState() public method

Updates the Focus state for the control
public UpdateFocusState ( ) : void
return void