|
Lines 682-687
Link Here
|
| 682 |
set { |
682 |
set { |
| 683 |
if (show_today != value) { |
683 |
if (show_today != value) { |
| 684 |
show_today = value; |
684 |
show_today = value; |
|
|
685 |
this.OnUIAShowTodayChanged (); |
| 685 |
this.Invalidate (); |
686 |
this.Invalidate (); |
| 686 |
} |
687 |
} |
| 687 |
} |
688 |
} |
|
Lines 711-716
Link Here
|
| 711 |
set { |
712 |
set { |
| 712 |
if (show_week_numbers != value) { |
713 |
if (show_week_numbers != value) { |
| 713 |
show_week_numbers = value; |
714 |
show_week_numbers = value; |
|
|
715 |
this.OnUIAShowWeekNumbersChanged (); |
| 714 |
// The values here don't matter, SetBoundsCore will calculate its own |
716 |
// The values here don't matter, SetBoundsCore will calculate its own |
| 715 |
SetBoundsCore (Left, Top, Width, Height, BoundsSpecified.Width); |
717 |
SetBoundsCore (Left, Top, Width, Height, BoundsSpecified.Width); |
| 716 |
this.Invalidate (); |
718 |
this.Invalidate (); |
|
Lines 1331-1336
Link Here
|
| 1331 |
set { |
1333 |
set { |
| 1332 |
if (show_year_updown != value) { |
1334 |
if (show_year_updown != value) { |
| 1333 |
show_year_updown = value; |
1335 |
show_year_updown = value; |
|
|
1336 |
this.OnUIAShowYearUpDownChanged (); |
| 1334 |
Invalidate (); |
1337 |
Invalidate (); |
| 1335 |
} |
1338 |
} |
| 1336 |
} |
1339 |
} |
|
Lines 2454-2459
Link Here
|
| 2454 |
|
2457 |
|
| 2455 |
static object UIAMaxSelectionCountChangedEvent = new object (); |
2458 |
static object UIAMaxSelectionCountChangedEvent = new object (); |
| 2456 |
static object UIASelectionChangedEvent = new object (); |
2459 |
static object UIASelectionChangedEvent = new object (); |
|
|
2460 |
static object UIAShowTodayChangedEvent = new object (); |
| 2461 |
static object UIAShowYearUpDownChangedEvent = new object (); |
| 2462 |
static object UIAShowWeekNumbersChangedEvent = new object (); |
| 2457 |
|
2463 |
|
| 2458 |
internal event EventHandler UIAMaxSelectionCountChanged { |
2464 |
internal event EventHandler UIAMaxSelectionCountChanged { |
| 2459 |
add { Events.AddHandler (UIAMaxSelectionCountChangedEvent, value); } |
2465 |
add { Events.AddHandler (UIAMaxSelectionCountChangedEvent, value); } |
|
Lines 2465-2470
Link Here
|
| 2465 |
remove { Events.RemoveHandler (UIASelectionChangedEvent, value); } |
2471 |
remove { Events.RemoveHandler (UIASelectionChangedEvent, value); } |
| 2466 |
} |
2472 |
} |
| 2467 |
|
2473 |
|
|
|
2474 |
internal event EventHandler UIAShowTodayChanged { |
| 2475 |
add { Events.AddHandler (UIAShowTodayChangedEvent, value); } |
| 2476 |
remove { Events.RemoveHandler (UIAShowTodayChangedEvent, value); } |
| 2477 |
} |
| 2478 |
|
| 2479 |
internal event EventHandler UIAShowYearUpDownChanged { |
| 2480 |
add { Events.AddHandler (UIAShowYearUpDownChangedEvent, value); } |
| 2481 |
remove { Events.RemoveHandler (UIAShowYearUpDownChangedEvent, value); } |
| 2482 |
} |
| 2483 |
|
| 2484 |
internal event EventHandler UIAShowWeekNumbersChanged { |
| 2485 |
add { Events.AddHandler (UIAShowWeekNumbersChangedEvent, value); } |
| 2486 |
remove { Events.RemoveHandler (UIAShowWeekNumbersChangedEvent, value); } |
| 2487 |
} |
| 2488 |
|
| 2468 |
private void OnUIAMaxSelectionCountChanged () |
2489 |
private void OnUIAMaxSelectionCountChanged () |
| 2469 |
{ |
2490 |
{ |
| 2470 |
EventHandler eh = (EventHandler) Events [UIAMaxSelectionCountChangedEvent]; |
2491 |
EventHandler eh = (EventHandler) Events [UIAMaxSelectionCountChangedEvent]; |
|
Lines 2479-2484
Link Here
|
| 2479 |
eh (this, EventArgs.Empty); |
2500 |
eh (this, EventArgs.Empty); |
| 2480 |
} |
2501 |
} |
| 2481 |
|
2502 |
|
|
|
2503 |
|
| 2504 |
private void OnUIAShowTodayChanged () |
| 2505 |
{ |
| 2506 |
EventHandler eh = (EventHandler) Events [UIAShowTodayChangedEvent]; |
| 2507 |
if (eh != null) |
| 2508 |
eh (this, EventArgs.Empty); |
| 2509 |
} |
| 2510 |
|
| 2511 |
private void OnUIAShowYearUpDownChanged () |
| 2512 |
{ |
| 2513 |
EventHandler eh = (EventHandler) Events [UIAShowYearUpDownChangedEvent]; |
| 2514 |
if (eh != null) |
| 2515 |
eh (this, EventArgs.Empty); |
| 2516 |
} |
| 2517 |
|
| 2518 |
private void OnUIAShowWeekNumbersChanged () |
| 2519 |
{ |
| 2520 |
EventHandler eh = (EventHandler) Events [UIAShowWeekNumbersChangedEvent]; |
| 2521 |
if (eh != null) |
| 2522 |
eh (this, EventArgs.Empty); |
| 2523 |
} |
| 2524 |
|
| 2482 |
#endregion |
2525 |
#endregion |
| 2483 |
} |
2526 |
} |
| 2484 |
} |
2527 |
} |