partial void changeDateTouched(NSObject sender) { BusTableModel model = ((ArrivalListTableViewSource)busTable.Source).model; //default to the already selected date, if there is one if (model.FutureTime.HasValue) datePickerSheet = new DatePickerView (model.FutureTime.Value); else//will be null if using now datePickerSheet = new DatePickerView (); datePickerSheet.DatePicked += datePicked; datePickerSheet.ShowInActionSheet (this.View); timeButtonView.BackgroundColor = buttonNormalColor; }
partial void changeDateTouched(NSObject sender) { BusTableModel model = ((ArrivalListTableViewSource)busTable.Source).model; //default to the already selected date, if there is one if (model.FutureTime.HasValue) { datePickerSheet = new DatePickerView(model.FutureTime.Value); } else //will be null if using now { datePickerSheet = new DatePickerView(); } datePickerSheet.DatePicked += datePicked; datePickerSheet.ShowInActionSheet(this.View); timeButtonView.BackgroundColor = buttonNormalColor; }