You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.3 KiB
C#

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
{
/// <summary>
/// 运行方法
/// </summary>
/// <param name="runtime"></param>
void Run(RuntimeParameter runtime);
}
}