using System; using System.Collections.Generic; using Comal.Classes; using InABox.Configuration; using InABox.Core; using InABox.Wpf; using System.ComponentModel; using System.Windows; namespace PRSDesktop { public class CalendarPanel : Calendar, IPanel { public string SectionName { get; } public CalendarPanel() : base() { SectionName = "Calendar"; LoadSettings += (sender) => new UserConfiguration(nameof(CalendarPanel)).Load(); SaveSettings += (sender,properties) => new UserConfiguration(nameof(CalendarPanel)).Save(properties); HeaderVisibility = Visibility.Visible; } public event DataModelUpdateEvent? OnUpdateDataModel; public void CreateToolbarButtons(IPanelHost host) { HumanResourcesSetupActions.SecurityGroups(host); host.CreateSetupSeparator(); HumanResourcesSetupActions.EmployeeTeams(host); HumanResourcesSetupActions.EmployeeActivities(host); HumanResourcesSetupActions.EmployeeRosters(host); host.CreateSetupSeparator(); HumanResourcesSetupActions.EmployeeOvertimeRules(host); HumanResourcesSetupActions.EmployeeOvertime(host); HumanResourcesSetupActions.EmployeeStandardLeave(host); } public Dictionary Selected() { return new Dictionary(); } public void Heartbeat(TimeSpan time) { } public override void Setup() { base.Setup(); } public override void Refresh() { base.Refresh(); } } }