Example #1
0
 /// <summary>
 /// Sets the color of the specified day in the current CalendarMonth
 /// </summary>
 /// <param name="Year">The input year</param>
 /// <param name="Month">The input month</param>
 /// <param name="Day">The input day</param>
 /// <param name="Color">The color to set to</param>
 public void SetDayColor(int Year, int Month, int Day, Utilities.Helpers.Colors Color)
 {
     if (ContainsDay(Year, Month, Day))
     {
         CalendarDay cd = _calendarDays[GetCalendarDayGUID(Year, Month, Day)];
         cd.DayColor = Color;
         cd.SetAllText(Utilities.Helpers.Colors.White);
         _coloredDays.Add(cd);
     }
 }
Example #2
0
 public void SetAllText(Utilities.Helpers.Colors color)
 {
     this.dayText.Foreground         = Utilities.Helpers.GetBrush(color);
     this.dayValue.Foreground        = Utilities.Helpers.GetBrush(color);
     this.dayValueSnapped.Foreground = Utilities.Helpers.GetBrush(color);
 }