IDashboardWidget.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using InABox.Core;
  2. using System.Windows;
  3. using System.Windows.Controls;
  4. using InABox.Configuration;
  5. using InABox.Wpf;
  6. namespace PRSDesktop
  7. {
  8. public interface IDashboardProperties { }
  9. public interface IDashboardWidget<TProperties> : ICorePanel
  10. where TProperties : IConfigurationSettings, IDashboardProperties
  11. {
  12. TProperties Properties { get; set; }
  13. event LoadSettings<TProperties> LoadSettings;
  14. event SaveSettings<TProperties> SaveSettings;
  15. }
  16. public interface IDashboardWidget<TGroup, TProperties> : IDashboardWidget<TProperties>
  17. where TGroup : DashboardWidgetGroup
  18. where TProperties : IConfigurationSettings, IDashboardProperties
  19. {
  20. }
  21. public interface IActionsDashboard
  22. {
  23. void BuildActionsMenu(ContextMenu menu);
  24. }
  25. public interface IDashboardElement { }
  26. public abstract class DashboardElement<TDashboard, TGroup, TProperties> : DFLayoutElement<TProperties>, IDashboardElement
  27. where TGroup : DashboardWidgetGroup
  28. where TProperties : IUserConfigurationSettings, IDashboardProperties, IConfigurationSettings
  29. where TDashboard : IDashboardWidget<TGroup, TProperties>
  30. {
  31. }
  32. }