1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using System;
- using System.Collections.Generic;
- using Comal.Classes;
- using InABox.Configuration;
- using InABox.Core;
- using Microsoft.Exchange.WebServices.Data;
- namespace PRSDesktop
- {
- public class EquipmentPlannerPanel : EquipmentPlanner, IPanel<Assignment>
- {
- public EquipmentPlannerPanel()
- {
- SectionName = nameof(EquipmentPlannerPanel);
- LoadSettings += (sender) => new UserConfiguration<EquipmentPlannerProperties>(nameof(EquipmentPlannerPanel)).Load();
- SaveSettings += (sender, properties) => new UserConfiguration<EquipmentPlannerProperties>(nameof(EquipmentPlannerPanel)).Save(properties);
- }
-
- public string SectionName { get; }
-
- public DataModel DataModel(Selection selection)
- {
- return new AutoDataModel<Assignment>(new Filter<Assignment>(x=>x.ID).IsEqualTo(Guid.Empty));
- }
- public event DataModelUpdateEvent? OnUpdateDataModel;
-
- public bool IsReady { get; set; }
-
- public void CreateToolbarButtons(IPanelHost host)
- {
- EquipmentSetupActions.TrackerTypes(host);
- EquipmentSetupActions.WebStickers(host);
- EquipmentSetupActions.DigitalKeys(host);
- EquipmentSetupActions.EquipmentGroups(host);
- }
- public Dictionary<string, object[]> Selected()
- {
- return new Dictionary<string, object[]>();
- }
- }
- }
|