C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
ApplyBlankFormat bool
ApplyValueFormat bool
FireValueChanged void
GetDateTimePickerValue System.DateTime
IsNull bool
ResizeNullDisplayBox void
SetDateTimePickerValue void
SetupNullDisplayBox void

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

ChangeToNullMode() публичный Метод

Changes the DatetTimePicker control to the null mode
public ChangeToNullMode ( ) : bool
Результат bool

ChangeToValueMode() публичный Метод

Changes the DatetTimePicker control to the value mode
public ChangeToValueMode ( ) : bool
Результат bool

DateTimePickerManager() публичный Метод

The Constructor for the DateTimePickerManager
public DateTimePickerManager ( IControlFactory controlFactory, IDateTimePicker dateTimePicker, ValueGetter valueGetter, ValueSetter valueSetter ) : System
controlFactory IControlFactory
dateTimePicker IDateTimePicker
valueGetter ValueGetter
valueSetter ValueSetter
Результат System

OnResize() публичный Метод

Handles the event of the DateTimePicker's size being changed
public OnResize ( EventArgs eventargs ) : void
eventargs System.EventArgs
Результат void

OnValueChanged() публичный Метод

Handles the event of the DateTime value being changed
public OnValueChanged ( EventArgs eventArgs ) : void
eventArgs System.EventArgs
Результат void

UpdateFocusState() публичный Метод

Updates the Focus state for the control
public UpdateFocusState ( ) : void
Результат void