C# Class Habanero.Faces.Base.DateTimePickerController

A controller class that wraps a DateTimePicker control and provides the additional capabilities for it to have a null value.
Show file Open project: Chillisoft/habanero.faces

Private Properties

Property Type Description
ApplyBlankFormat bool
ApplyValueFormat bool
DateTimePicker_Resize void
FireValueChanged void
GetControlProp object
IsNull bool
ResizeDisplayBox void
SetControlProp void
SetupDisplayBox void
UpdateFocusState void

Public Methods

Method Description
DateTimePickerController ( IControlFactory controlFactory, IDateTimePicker dateTimePicker, PropertyInfo _checkedPropInfo, PropertyInfo _showCheckBoxPropInfo ) : System

Initialises a new instance of a DateTimePickerController.

Private Methods

Method Description
ApplyBlankFormat ( ) : bool
ApplyValueFormat ( ) : bool
DateTimePicker_Resize ( object sender, EventArgs e ) : void
FireValueChanged ( ) : void
GetControlProp ( PropertyInfo propertyInfo ) : object
IsNull ( ) : bool
ResizeDisplayBox ( ) : void
SetControlProp ( PropertyInfo propertyInfo, object value ) : void
SetupDisplayBox ( ) : void
UpdateFocusState ( ) : void

Method Details

DateTimePickerController() public method

Initialises a new instance of a DateTimePickerController.
public DateTimePickerController ( IControlFactory controlFactory, IDateTimePicker dateTimePicker, PropertyInfo _checkedPropInfo, PropertyInfo _showCheckBoxPropInfo ) : System
controlFactory IControlFactory The control factory used to construct controls for the nullable picker.
dateTimePicker IDateTimePicker The DateTimePicker control(can be any implementation)
_checkedPropInfo System.Reflection.PropertyInfo The objects reflective property to be used for setting the check box checked state
_showCheckBoxPropInfo System.Reflection.PropertyInfo The objects reflective property to be used for showing and hiding the checkbox.
return System