1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- using System;
- using System.Collections.Generic;
- using System.Drawing;
- 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);
- bool Focus();
- Dictionary<string, object[]> Selected();
- void Heartbeat(TimeSpan time);
- }
- public interface IPanel<T> : IBasePanel
- {
- }
- public interface IPanelHost
- {
- void CreatePanelAction(PanelAction action);
- }
- }
|