using System;
namespace WWPipeLine.Commons.Plugsin
{
///
/// 插件接口
///
public interface IPlugsin
{
///
/// 初始化
///
void Init();
///
/// 设置界面信息
///
///
void SetLineTip(string msg);
}
///
/// 插件加载类型
///
public enum PlugsinType
{
///
/// 在顶部加载
///
Top = 0,
///
/// 在右侧加载
///
Right = 1,
///
/// 菜单加载
///
Menu = 2,
///
/// 不使用
///
None = 255
}
///
/// 插件特性
///
public class PlugsinAttribute : Attribute
{
private string _Name;
///
/// 名称
///
public string Name
{
get { return _Name; }
set { _Name = value; }
}
private string _ModuleID;
///
/// 字符串参数
///
public string ModuleID
{
get { return _ModuleID; }
set { _ModuleID = value; }
}
private PlugsinType _plugsinType;
///
/// 加载类型
///
public PlugsinType PlugsinType
{
get { return _plugsinType; }
set { _plugsinType = value; }
}
private string _caption;
///
/// 标题
///
public string Caption
{
get { return _caption; }
set { _caption = value; }
}
private int _Sort;
///
/// 排序 ,在多个特性中的排序
///
public int Sort
{
get { return _Sort; }
set { _Sort = value; }
}
}
}