using Mesnac.Controls.Base; namespace Mesnac.Action.Base { public class RuntimeParameter { public RuntimeParameter() { this.Sender = null; this.BaseControl = null; this.ProjectWizardName = string.Empty; this.DesignGuid = string.Empty; this.RuntimeGuid = string.Empty; this.Parameters = string.Empty; this.IsReturn = false; this.evn = null; } public System.EventArgs evn { get; set; } public bool IsReturn { get; set; } private object _sender = null; public object Sender { get { return this._sender; } set { this._sender = value; this.BaseControl = this._sender as IBaseControl; } } public IBaseControl BaseControl { get; private set; } public string ProjectWizardName { get; set; } public string DesignGuid { get; set; } public string RuntimeGuid { get; set; } public string Parameters { get; set; } } public interface IAction { /// /// 运行方法 /// /// void Run(RuntimeParameter runtime); } }