using Bro.Common.Helper; using System; using System.Collections.Generic; using System.Drawing; using System.Reflection; using static Bro.Common.Helper.EnumHelper; namespace Bro.Common.Interface { public interface IProcess : ILogger, IExceptionHandler { #region 属性 IProcessConfig IConfig { get; set; } List ProcessMethodCollection { get; set; } Dictionary ProcessMethodDict { get; set; } List DeviceCollection { get; set; } string ProductionCode { get; set; } DeviceState ProcessState { get; set; } #endregion #region 方法 /// /// 打开 /// void Open(bool isServiceMode = false); void Open(); /// /// 关闭 /// void Close(); /// /// 初始化Process /// void InitialProcess(string configPath); void InitialProcess(); void InitialProcessMethods(); #endregion #region 事件 ///// ///// 图像输出事件 ///// //event Action OnBitmapOutput; event Action OnProcessStateChanged; event Action OnAlarmUpdate; Action OnUpdateResult { get; set; } Action OnUpdateCT { get; set; } #endregion #region 数据库操作 void SaveProcessConfig(IProcessConfig config); void CreateNewConfig(IProcessConfig config,string newProductionCode); #endregion } }