예제 #1
0
 private void UpdateDayMonthYearValues()
 {
     var args = new DateChangedEventArgs(SelectedDateTime, SelectedDateTime);
     UpdateDayMonthYearValues(args);
 }
예제 #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");
		}
예제 #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;
        }
예제 #5
0
        public void RaiseDateChangedEvent(DateTime NewSelectedDate)
        {
            DateChangedHandler eh = DateChanged;

            if (eh != null)
            {
                DateChangedEventArgs args = new DateChangedEventArgs(NewSelectedDate);
                eh(this, args);
            }
        }
예제 #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;
 }
예제 #8
0
 void Handle_DateSelected(object sender, DateChangedEventArgs e)
 {
     SelectedDate = new DateTime?(Date);
     SelectedDateChanged?.Invoke(this, null);
 }
예제 #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")}";
 }
예제 #10
0
 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();
 }
예제 #12
0
 private void OnIBGFromDateSelected(object sender, DateChangedEventArgs e)
 {
     fromibgdat  = new DateTime(fromibgdate.Date.Year, fromibgdate.Date.Month, 01);
     fromibgDate = fromibgdat.ToString("yyyy-MM-dd");
 }
예제 #13
0
 private void OnDateSelected(object sender, DateChangedEventArgs e)
 {
 }
예제 #14
0
 private void faMonthView_SelectedDayChanged(object sender, DateChangedEventArgs e)
 {
     AddItem(sender, "SelectedDayChanged");
 }
예제 #15
0
 private void UpdateDayMonthYearValues(DateChangedEventArgs args)
 {
 }
예제 #16
0
 void Handle_DateSelected(object sender, DateChangedEventArgs e)
 {
     DisplayAlert("Date selected", e.NewDate.ToString(), "OK");
 }
예제 #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();
                }
            }
        }      
예제 #18
0
 void DatePickerDateSelected(object sender, DateChangedEventArgs e)
 {
     EventValue.Text = e.NewDate.ToString();
     PageValue.Text  = TheDatePicker.Date.ToString();
 }