1 write to calendar
System.Windows.Forms (1)
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
2648
calendar
= owner as MonthCalendar;
41 references to calendar
System.Windows.Forms (41)
winforms\Managed\System\WinForms\MonthCalendar.cs (41)
2654
if (
calendar
!= null) {
2655
AccessibleRole role =
calendar
.AccessibleRole;
2672
if (
calendar
!= null) {
2673
return
calendar
.GetType().Name + "(" +
calendar
.GetType().BaseType.Name + ")";
2688
if (
calendar
!= null) {
2690
if (
calendar
.mcCurView == NativeMethods.MONTCALENDAR_VIEW_MODE.MCMV_MONTH) {
2691
if (System.DateTime.Equals(
calendar
.SelectionStart.Date,
calendar
.SelectionEnd.Date)) {
2692
name = SR.GetString(SR.MonthCalendarSingleDateSelected,
calendar
.SelectionStart.ToLongDateString());
2695
name = SR.GetString(SR.MonthCalendarRangeSelected,
calendar
.SelectionStart.ToLongDateString(),
calendar
.SelectionEnd.ToLongDateString());
2698
else if (this.
calendar
.mcCurView == NativeMethods.MONTCALENDAR_VIEW_MODE.MCMV_YEAR) {
2699
if (System.DateTime.Equals(this.
calendar
.SelectionStart.Month, this.
calendar
.SelectionEnd.Month)) {
2700
name = SR.GetString(SR.MonthCalendarSingleDateSelected,
calendar
.SelectionStart.ToString("y"));
2703
name = SR.GetString(SR.MonthCalendarRangeSelected,
calendar
.SelectionStart.ToString("y"),
calendar
.SelectionEnd.ToString("y"));
2706
else if (
calendar
.mcCurView == NativeMethods.MONTCALENDAR_VIEW_MODE.MCMV_DECADE) {
2707
if (System.DateTime.Equals(
calendar
.SelectionStart.Year,
calendar
.SelectionEnd.Year)) {
2708
name = SR.GetString(SR.MonthCalendarSingleYearSelected,
calendar
.SelectionStart.ToString("yyyy"));
2711
name = SR.GetString(SR.MonthCalendarYearRangeSelected,
calendar
.SelectionStart.ToString("yyyy"),
calendar
.SelectionEnd.ToString("yyyy"));
2714
else if (
calendar
.mcCurView == NativeMethods.MONTCALENDAR_VIEW_MODE.MCMV_CENTURY) {
2715
name = SR.GetString(SR.MonthCalendarSingleDecadeSelected,
calendar
.SelectionStart.ToString("yyyy"));
2726
if (
calendar
!= null) {
2727
if (
calendar
.mcCurView == NativeMethods.MONTCALENDAR_VIEW_MODE.MCMV_MONTH) {
2728
if (System.DateTime.Equals(
calendar
.SelectionStart.Date,
calendar
.SelectionEnd.Date)) {
2729
value =
calendar
.SelectionStart.ToLongDateString();
2732
value = string.Format("{0} - {1}",
calendar
.SelectionStart.ToLongDateString(),
calendar
.SelectionEnd.ToLongDateString());
2735
else if (this.
calendar
.mcCurView == NativeMethods.MONTCALENDAR_VIEW_MODE.MCMV_YEAR) {
2736
if (System.DateTime.Equals(this.
calendar
.SelectionStart.Month, this.
calendar
.SelectionEnd.Month)) {
2737
value =
calendar
.SelectionStart.ToString("y");
2740
value = string.Format("{0} - {1}",
calendar
.SelectionStart.ToString("y"),
calendar
.SelectionEnd.ToString("y"));
2744
value = string.Format("{0} - {1}",
calendar
.SelectionRange.Start.ToString(),
calendar
.SelectionRange.End.ToString());