Example #1
0
 private void UpdateDayMonthYearValues()
 {
     var args = new DateChangedEventArgs(SelectedDateTime, SelectedDateTime);
     UpdateDayMonthYearValues(args);
 }
Example #2
0
		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");
		}
Example #3
0
        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);
            }
        }
Example #6
0
 private void faMonthView_ViewYearChanged(object sender, DateChangedEventArgs e)
 {
     AddItem(sender, "ViewYearChanged");
 }
 private void DatePicker_DateSelected(object sender, DateChangedEventArgs e)
 {
     //e.NewDate;
     //e.OldDate;
 }
Example #8
0
 void Handle_DateSelected(object sender, DateChangedEventArgs e)
 {
     SelectedDate = new DateTime?(Date);
     SelectedDateChanged?.Invoke(this, null);
 }
Example #9
0
 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");
 }
Example #13
0
 private void OnDateSelected(object sender, DateChangedEventArgs e)
 {
 }
Example #14
0
 private void faMonthView_SelectedDayChanged(object sender, DateChangedEventArgs e)
 {
     AddItem(sender, "SelectedDayChanged");
 }
Example #15
0
 private void UpdateDayMonthYearValues(DateChangedEventArgs args)
 {
 }
Example #16
0
 void Handle_DateSelected(object sender, DateChangedEventArgs e)
 {
     DisplayAlert("Date selected", e.NewDate.ToString(), "OK");
 }
Example #17
0
        /// <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();
                }
            }
        }      
Example #18
0
 void DatePickerDateSelected(object sender, DateChangedEventArgs e)
 {
     EventValue.Text = e.NewDate.ToString();
     PageValue.Text  = TheDatePicker.Date.ToString();
 }