C# Class ClanceysLib.CalendarDateTimeElement

Inheritance: MonoTouch.Dialog.StringElement
Show file Open project: Clancey/ClanceyLib

Public Properties

Property Type Description
DateValue System.DateTime
DisableSwitching bool
DoneEditing NSAction
OnDateSelected DateSelected
PickerType PickerTypes
calView MonoTouch.Dialog.CalendarMonthView
closeOnSelect bool
datePicker UIDatePicker

Protected Properties

Property Type Description
fmt NSDateFormatter

Public Methods

Method Description
CalendarDateTimeElement ( string caption, System.DateTime date ) : System
CalendarDateTimeElement ( string caption, System.DateTime date, PickerTypes pickerType ) : System
CreatePicker ( ) : UIDatePicker
DateTimeToNSDate ( System.DateTime date ) : NSDate
Deselected ( DialogViewController dvc, UITableView tableView, NSIndexPath path ) : void
FormatDate ( System.DateTime dt ) : string
GetCell ( UITableView tv ) : UITableViewCell
NSDateToDateTime ( MonoTouch date ) : System.DateTime
Selected ( DialogViewController dvc, UITableView tableView, NSIndexPath path ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
CloseCalendar ( DialogViewController dvc, UITableView tableView, NSIndexPath path ) : void
PickerFrameWithSize ( SizeF size ) : RectangleF
ShowCalendar ( DialogViewController dvc, UITableView tableView, NSIndexPath path ) : void
ShowDatePicker ( DialogViewController dvc, UITableView tableView, NSIndexPath path ) : void
SlideDown ( DialogViewController dvc, UITableView tableView, NSIndexPath path ) : void

Method Details

CalendarDateTimeElement() public method

public CalendarDateTimeElement ( string caption, System.DateTime date ) : System
caption string
date System.DateTime
return System

CalendarDateTimeElement() public method

public CalendarDateTimeElement ( string caption, System.DateTime date, PickerTypes pickerType ) : System
caption string
date System.DateTime
pickerType PickerTypes
return System

CreatePicker() public method

public CreatePicker ( ) : UIDatePicker
return UIDatePicker

DateTimeToNSDate() public static method

public static DateTimeToNSDate ( System.DateTime date ) : NSDate
date System.DateTime
return NSDate

Deselected() public method

public Deselected ( DialogViewController dvc, UITableView tableView, NSIndexPath path ) : void
dvc MonoTouch.Dialog.DialogViewController
tableView UITableView
path NSIndexPath
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

FormatDate() public method

public FormatDate ( System.DateTime dt ) : string
dt System.DateTime
return string

GetCell() public method

public GetCell ( UITableView tv ) : UITableViewCell
tv UITableView
return UITableViewCell

NSDateToDateTime() public static method

public static NSDateToDateTime ( MonoTouch date ) : System.DateTime
date MonoTouch
return System.DateTime

Selected() public method

public Selected ( DialogViewController dvc, UITableView tableView, NSIndexPath path ) : void
dvc MonoTouch.Dialog.DialogViewController
tableView UITableView
path NSIndexPath
return void

Property Details

DateValue public property

public DateTime,System DateValue
return System.DateTime

DisableSwitching public property

public bool DisableSwitching
return bool

DoneEditing public property

public NSAction DoneEditing
return NSAction

OnDateSelected public property

public DateSelected OnDateSelected
return DateSelected

PickerType public property

public PickerTypes PickerType
return PickerTypes

calView public property

public CalendarMonthView,MonoTouch.Dialog calView
return MonoTouch.Dialog.CalendarMonthView

closeOnSelect public property

public bool closeOnSelect
return bool

datePicker public property

public UIDatePicker datePicker
return UIDatePicker

fmt protected property

protected NSDateFormatter fmt
return NSDateFormatter