using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using Mesnac.Action.Base;
using Mesnac.Controls.Base;
namespace Mesnac.ActionService
{
///
/// 设计时功能操作信息
///
public class DesignAction
{
///
/// 保存的唯一值
///
public string GUID { get; set; }
///
/// 显示的名称
///
public string Name { get; set; }
///
/// 说明
///
public string Remark { get; set; }
///
/// 自动运行
///
public bool AutoRun { get; set; }
}
///
/// 设计时可用操作列表
///
public class DesignActionNode
{
public DesignActionNode()
{
this.Name = string.Empty;
this.Children = new List();
this.ActionNode = new List();
}
public string Name { get; set; }
public List Children { get; set; }
public List ActionNode { get; set; }
}
///
/// 事件处理接口
///
public interface IDesignService
{
void IniDesignAction(string path);
DesignActionNode DesignActionTree { get; set; }
}
///
/// 运行时功能操作信息
///
public class RuntimeAction
{
public string GUID { get; set; }
public bool AutoRun { get; set; }
public string File { get; set; }
public Assembly Assembly { get; set; }
public Type Class { get; set; }
public IAction Instance { get; set; }
}
public class DesignRuntime
{
public DesignRuntime(string guid)
{
this.GUID = guid;
this.Parameters = string.Empty;
}
public DesignRuntime(string guid, string parameters)
{
this.GUID = guid;
this.Parameters = parameters;
}
public string GUID { get; set; }
public string Parameters { get; set; }
}
///
/// 运行时功能操作信息
///
public class DesignToRuntime
{
public DesignToRuntime()
{
this.GUID = string.Empty;
this.Runtime = new List();
}
public string GUID { get; set; }
public List Runtime { get; set; }
}
///
/// 事件处理接口
///
public interface IRuntimeService
{
void IniRuntimeAction(string path, bool isAutoRun);
void Run(object sender, List action);
Dictionary AllRuntimeAction { get; set; }
Dictionary AllDesignToRuntime { get; set; }
}
}