Finalizing quick event dialog.

This commit is contained in:
Burak Kaan Köse
2025-01-01 17:28:29 +01:00
parent a82b487b92
commit 1c79d14260
17 changed files with 424 additions and 93 deletions

View File

@@ -27,7 +27,14 @@ namespace Wino.Helpers
public static bool IsMultiple(int count) => count > 1;
public static bool ReverseIsMultiple(int count) => count < 1;
public static TeachingTipPlacementMode GetPlaccementModeForCalendarType(CalendarDisplayType type)
{
return type switch
{
CalendarDisplayType.Week => TeachingTipPlacementMode.Right,
_ => TeachingTipPlacementMode.Bottom,
};
}
public static ICalendarItem GetFirstAllDayEvent(CalendarEventCollection collection)
=> collection.AllDayEvents.FirstOrDefault();