Used in firing Day/Month/Year change events.
Inheritance: System.EventArgs
Exemple #1
0
 private void faMonthView_ViewMonthChanged(object sender, DateChangedEventArgs e)
 {
     AddItem(sender, "ViewMonthChanged");
 }
Exemple #2
0
 private void faMonthView_SelectedYearChanged(object sender, DateChangedEventArgs e)
 {
     AddItem(sender, "SelectedYearChanged");
 }
 protected void UpdateViewDayMonthYearValues(DateChangedEventArgs args)
 {
     OnViewDayChanged(args);
     OnViewMonthChanged(args);
     OnViewYearChanged(args);
 }
 protected void UpdateViewDayMonthYearValues()
 {
     var args = new DateChangedEventArgs(ViewDateTime, ViewDateTime);
     UpdateViewDayMonthYearValues(args);
 }
 protected void UpdateSelectedDayMonthYearValues(DateChangedEventArgs args)
 {
     OnSelectedDayChanged(args);
     OnSelectedMonthChanged(args);
     OnSelectedYearChanged(args);
 }
        protected virtual void OnViewYearChanged(DateChangedEventArgs e)
        {
            if (ViewYearChanged != null)
                ViewYearChanged(this, e);

            ViewYear = DefaultCalendar.GetYear(e.NewValue.Value);
        }
        protected virtual void OnViewDayChanged(DateChangedEventArgs e)
        {
            if (ViewDayChanged != null)
                ViewDayChanged(this, e);

            ViewDay = DefaultCalendar.GetDayOfMonth(e.NewValue.Value);
        }
        protected virtual void OnSelectedYearChanged(DateChangedEventArgs e)
        {
            if(SelectedYearChanged != null)
                SelectedYearChanged(this, e);

            SelectedYear = e.NewValue.HasValue ? DefaultCalendar.GetYear(e.NewValue.Value) : -1;
        }
        protected virtual void OnSelectedDayChanged(DateChangedEventArgs e)
        {
            if(SelectedDayChanged != null)
                SelectedDayChanged(this, e);

            SelectedDay = e.NewValue.HasValue ? DefaultCalendar.GetDayOfMonth(e.NewValue.Value) : -1;
        }