C# Класс Habanero.Faces.Win.DateTimePickerUtilWinTemp

Gets and sets date-time values in any given date-time picker
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddValueChangedHandler ( Control dateTimePicker, EventHandler eventHandler ) : void

Adds a ValueChanged handler for the date-time picker

GetValue ( Control dateTimePicker ) : object

Gets a date-time value from the provided picker

RemoveValueChangedHandler ( Control dateTimePicker, EventHandler eventHandler ) : void

Removes a ValueChanged handler for the date-time picker

SetCustomFormat ( Control dateTimePicker, string customFormat ) : void

Specify the custom format for the given date-time picker

SetShowUpDown ( Control dateTimePicker, bool showUpDown ) : void

Specify the time format in the given date-time picker

SetTimeFormat ( Control dateTimePicker ) : void

Specify the time format in the given date-time picker

SetValue ( Control dateTimePicker, System.DateTime date ) : void

Sets the date-time value in the specified date-time picker

SetValue ( Control dateTimePicker, object dateValue ) : void

Sets the date-time value in the specified date-time picker

SetValue ( Control dateTimePicker, string dateString ) : void

Sets the date-time value in the specified date-time picker

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

AddValueChangedHandler() публичный статический Метод

Adds a ValueChanged handler for the date-time picker
public static AddValueChangedHandler ( Control dateTimePicker, EventHandler eventHandler ) : void
dateTimePicker System.Windows.Forms.Control The date-time picker
eventHandler EventHandler The Handler to add
Результат void

GetValue() публичный статический Метод

Gets a date-time value from the provided picker
public static GetValue ( Control dateTimePicker ) : object
dateTimePicker System.Windows.Forms.Control A date-time picker
Результат object

RemoveValueChangedHandler() публичный статический Метод

Removes a ValueChanged handler for the date-time picker
public static RemoveValueChangedHandler ( Control dateTimePicker, EventHandler eventHandler ) : void
dateTimePicker System.Windows.Forms.Control The date-time picker
eventHandler EventHandler The Handler to remove
Результат void

SetCustomFormat() публичный статический Метод

Specify the custom format for the given date-time picker
public static SetCustomFormat ( Control dateTimePicker, string customFormat ) : void
dateTimePicker System.Windows.Forms.Control The date-time picker
customFormat string The custom format to set for the date-time picker
Результат void

SetShowUpDown() публичный статический Метод

Specify the time format in the given date-time picker
public static SetShowUpDown ( Control dateTimePicker, bool showUpDown ) : void
dateTimePicker System.Windows.Forms.Control The date-time picker
showUpDown bool Specifies if the Up/Down control must be shown or not
Результат void

SetTimeFormat() публичный статический Метод

Specify the time format in the given date-time picker
public static SetTimeFormat ( Control dateTimePicker ) : void
dateTimePicker System.Windows.Forms.Control The date-time picker
Результат void

SetValue() публичный статический Метод

Sets the date-time value in the specified date-time picker
public static SetValue ( Control dateTimePicker, System.DateTime date ) : void
dateTimePicker System.Windows.Forms.Control The date-time picker
date System.DateTime The date to set to
Результат void

SetValue() публичный статический Метод

Sets the date-time value in the specified date-time picker
Thrown if the date value is neither /// a string nor a DateTime object
public static SetValue ( Control dateTimePicker, object dateValue ) : void
dateTimePicker System.Windows.Forms.Control The date-time picker
dateValue object The date value as either a string or as /// a DateTime object
Результат void

SetValue() публичный статический Метод

Sets the date-time value in the specified date-time picker
public static SetValue ( Control dateTimePicker, string dateString ) : void
dateTimePicker System.Windows.Forms.Control The date-time picker
dateString string The date value as a string
Результат void