12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- using System;
- using System.Collections.Generic;
- using System.Drawing;
- using InABox.Configuration;
- using InABox.Core;
- namespace PRSDesktop
- {
- public class PanelAction
- {
- public Action<PanelAction> OnExecute { get; set; }
- public string Section { get; set; }
- public string Caption { get; set; }
- public Bitmap Image { get; set; }
- public void Execute()
- {
- OnExecute?.Invoke(this);
- }
- }
- public interface ICorePanel
- {
- void Setup();
- void Shutdown();
- void Refresh();
- }
- public interface IBasePanel : ICorePanel, IDataModelSource
- {
- bool IsReady { get; set; }
- void CreateToolbarButtons(IPanelHost host);
- Dictionary<string, object[]> Selected();
- void Heartbeat(TimeSpan time);
- }
- public interface IPanel<T> : IBasePanel
- {
- }
- public interface IPropertiesPanel<TProperties>
- where TProperties : BaseObject, GlobalConfigurationSettings, new()
- {
- public TProperties Properties { get; set; }
- }
- public interface IPanelHost
- {
- void CreatePanelAction(PanelAction action);
- }
- }
|