|
@@ -175,7 +175,7 @@ class ScheduleBackgroundConverter : IValueConverter
|
|
|
/// <summary>
|
|
|
/// Interaction logic for EquipmentSchedulesDashboard.xaml
|
|
|
/// </summary>
|
|
|
-public partial class EquipmentSchedulesDashboard : UserControl, IDashboardWidget<EquipmentDashboardGroup, EquipmentSchedulesDashboardProperties>, IHeaderDashboard
|
|
|
+public partial class EquipmentSchedulesDashboard : UserControl, IDashboardWidget<EquipmentDashboardGroup, EquipmentSchedulesDashboardProperties>, IHeaderDashboard, IBasePanel
|
|
|
{
|
|
|
public EquipmentSchedulesDashboardProperties Properties { get; set; } = null!;
|
|
|
|
|
@@ -183,6 +183,7 @@ public partial class EquipmentSchedulesDashboard : UserControl, IDashboardWidget
|
|
|
|
|
|
public event LoadSettings<EquipmentSchedulesDashboardProperties>? LoadSettings;
|
|
|
public event SaveSettings<EquipmentSchedulesDashboardProperties>? SaveSettings;
|
|
|
+ public event DataModelUpdateEvent? OnUpdateDataModel;
|
|
|
|
|
|
private Dictionary<Guid, Equipment> Equipment = new();
|
|
|
|
|
@@ -204,6 +205,33 @@ public partial class EquipmentSchedulesDashboard : UserControl, IDashboardWidget
|
|
|
SetupHeader();
|
|
|
}
|
|
|
|
|
|
+ #region IBasePanel
|
|
|
+
|
|
|
+ public string SectionName => "EquipmentSchedules";
|
|
|
+
|
|
|
+ public DataModel DataModel(Selection selection)
|
|
|
+ {
|
|
|
+ return new AutoDataModel<Equipment>(new Filter<Equipment>().All());
|
|
|
+ }
|
|
|
+
|
|
|
+ public bool IsReady { get; set; }
|
|
|
+
|
|
|
+ public void CreateToolbarButtons(IPanelHost host)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ public Dictionary<string, object[]> Selected()
|
|
|
+ {
|
|
|
+ return new();
|
|
|
+ }
|
|
|
+
|
|
|
+ public void Heartbeat(TimeSpan time)
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ #endregion
|
|
|
+
|
|
|
#region Header
|
|
|
|
|
|
private CheckBox ShowSchedulesBox = null!;
|