private void UpdateDayMonthYearValues() { var args = new DateChangedEventArgs(SelectedDateTime, SelectedDateTime); UpdateDayMonthYearValues(args); }
public void OnPickerDateChanged(object sender, DateChangedEventArgs args) { Product product = (Product)currentlyEditedItem; product.PurchaseDate = args.Date; itemEditPurchase.Text = (args.Date == null)?"":((DateTime)args.Date).ToString("d"); }
private void DoDateChanged(NavigationDirection direction, DateTime oldStartDate, DateTime oldEndDate, DateTime newStartDate, DateTime newEndDate) { if (DateChanged != null) { DateChangedEventArgs ev = new DateChangedEventArgs( direction, oldStartDate, oldEndDate, newStartDate, newEndDate); DateChanged(this, ev); } }
private async void SelectedBookingDate_DateSelected(object sender, DateChangedEventArgs e) { cvm = new MyBookingHistoryViewModel(UserName, SelectedBookingDate.Date); this.BindingContext = cvm; }
public void RaiseDateChangedEvent(DateTime NewSelectedDate) { DateChangedHandler eh = DateChanged; if (eh != null) { DateChangedEventArgs args = new DateChangedEventArgs(NewSelectedDate); eh(this, args); } }
private void faMonthView_ViewYearChanged(object sender, DateChangedEventArgs e) { AddItem(sender, "ViewYearChanged"); }
private void DatePicker_DateSelected(object sender, DateChangedEventArgs e) { //e.NewDate; //e.OldDate; }
void Handle_DateSelected(object sender, DateChangedEventArgs e) { SelectedDate = new DateTime?(Date); SelectedDateChanged?.Invoke(this, null); }
private void MyDatePickerOnDateSelected(object sender, DateChangedEventArgs dateChangedEventArgs) { (this.BindingContext as AddDocumentViewModel).Document.AddDate = dateChangedEventArgs.NewDate; SelectedDate.Text = $"Date : {(sender as DatePicker).Date.ToString("dd-MM-yyyy")}"; }
private void OnIBGToDateSelected(object sender, DateChangedEventArgs e) { toibgdat = new DateTime(toibgdate.Date.Year, toibgdate.Date.Month, 01); toibgDate = toibgdat.ToString("yyyy-MM-dd"); }
private async void OnCancel_Tapped(object sender, DateChangedEventArgs e) { await Navigation.PopAsync(); }
private void OnIBGFromDateSelected(object sender, DateChangedEventArgs e) { fromibgdat = new DateTime(fromibgdate.Date.Year, fromibgdate.Date.Month, 01); fromibgDate = fromibgdat.ToString("yyyy-MM-dd"); }
private void OnDateSelected(object sender, DateChangedEventArgs e) { }
private void faMonthView_SelectedDayChanged(object sender, DateChangedEventArgs e) { AddItem(sender, "SelectedDayChanged"); }
private void UpdateDayMonthYearValues(DateChangedEventArgs args) { }
void Handle_DateSelected(object sender, DateChangedEventArgs e) { DisplayAlert("Date selected", e.NewDate.ToString(), "OK"); }
/// <summary> /// Handles the selected date changed event of calendar. /// </summary> /// <param name="sender">Object calling the event</param> /// <param name="e">Event arguments</param> private void Calendar_SelectedDateChanged(object sender, DateChangedEventArgs e) { if (this.inlineEditing) { this.inlineEditing = false; return; } if ((e.Changes & ChangedDateParts.YearChanged) != ChangedDateParts.YearChanged && (e.Changes & ChangedDateParts.MonthChanged) != ChangedDateParts.MonthChanged) { if (this.Functionality == DateFunctionality.Complex || ((e.Changes & ChangedDateParts.YearSelected) != ChangedDateParts.YearSelected && (e.Changes & ChangedDateParts.MonthSelected) != ChangedDateParts.MonthSelected && (e.Changes & ChangedDateParts.NullStringSelected) != ChangedDateParts.NullStringSelected)) { this.Value = new NhsDate(e.SelectedDate); if ((e.Changes & ChangedDateParts.YearSelected) == ChangedDateParts.YearSelected) { this.DateType = DateType.Year; this.editingDateType = DateType.Year; this.Year = e.SelectedDate.Year; } else if ((e.Changes & ChangedDateParts.MonthSelected) == ChangedDateParts.MonthSelected) { this.DateType = DateType.YearMonth; this.editingDateType = DateType.YearMonth; this.Year = e.SelectedDate.Year; this.Month = e.SelectedDate.Month; } else if ((e.Changes & ChangedDateParts.NullStringSelected) == ChangedDateParts.NullStringSelected) { this.DateType = DateType.NullIndex; this.editingDateType = DateType.NullIndex; this.NullIndex = this.calendar.NullIndex; } this.calendar.Hide(); this.currentValue = this.Value; this.txtInput.Focus(); this.validated = false; this.FormatOnFocusValue(); } } }
void DatePickerDateSelected(object sender, DateChangedEventArgs e) { EventValue.Text = e.NewDate.ToString(); PageValue.Text = TheDatePicker.Date.ToString(); }