private static List <Color> GetCalendarColors() { CalendarView cal = new CalendarView(); cal.DisplayedOwners.Add(" "); List <Color> colors = new List <Color>(); var values = Enum.GetValues(typeof(eCalendarColor)); foreach (var color in values) { try { cal.MultiCalendarTimeLineViews[0].CalendarColor = (eCalendarColor)color; CalendarColor c = cal.MultiCalendarTimeLineViews[0].CalendarColorTable; Color realColor = c.GetColor(CALENDAR_PART); colors.Add(realColor); ColorMap cm = new ColorMap((eCalendarColor)color, realColor); colorMapper.Add(cm); } catch (Exception e) { Console.WriteLine(e); } } cal.Dispose(); return(colors); }
void ReleaseDesignerOutlets() { if (CalendarView != null) { CalendarView.Dispose(); CalendarView = null; } if (DatePickerEnd != null) { DatePickerEnd.Dispose(); DatePickerEnd = null; } if (DatePickerStart != null) { DatePickerStart.Dispose(); DatePickerStart = null; } if (EnableRangePickers != null) { EnableRangePickers.Dispose(); EnableRangePickers = null; } if (ShowDatesinListView != null) { ShowDatesinListView.Dispose(); ShowDatesinListView = null; } }
void ReleaseDesignerOutlets() { if (CalendarView != null) { CalendarView.Dispose(); CalendarView = null; } if (EventTitleLabel != null) { EventTitleLabel.Dispose(); EventTitleLabel = null; } if (Separator != null) { Separator.Dispose(); Separator = null; } if (DateLabel != null) { DateLabel.Dispose(); DateLabel = null; } }
void ReleaseDesignerOutlets() { if (CalendarView != null) { CalendarView.Dispose(); CalendarView = null; } if (DateLabel != null) { DateLabel.Dispose(); DateLabel = null; } }