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.
131 lines
3.2 KiB
C#
131 lines
3.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
using Mesnac.Controls.Base;
|
|
using Mesnac.PlugIn.View;
|
|
|
|
namespace Mesnac.Gui.Common
|
|
{
|
|
public partial class FrmRunTemplate : DefaultViewContent, IPurviewControl
|
|
{
|
|
private List<DesignAction> _loadActionList = new List<DesignAction>();
|
|
private List<DesignAction> _activatedActionList = new List<DesignAction>();
|
|
private List<DesignAction> _reloadActionList = new List<DesignAction>();
|
|
|
|
private bool _isValid = true; //是否有效
|
|
private bool _bHaveAction = false; //是否有动画
|
|
|
|
public FrmRunTemplate()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 重写Container属性
|
|
/// </summary>
|
|
public new IContainer Container
|
|
{
|
|
get { return this.components; }
|
|
}
|
|
/// <summary>
|
|
/// 窗体加载处理列表
|
|
/// </summary>
|
|
[DefaultValue(null)]
|
|
public List<DesignAction> LoadActionList
|
|
{
|
|
get { return _loadActionList; }
|
|
set { _loadActionList = value; }
|
|
}
|
|
/// <summary>
|
|
/// 窗体激活处理列表
|
|
/// </summary>
|
|
[DefaultValue(null)]
|
|
public List<DesignAction> ActivatedActionList
|
|
{
|
|
get { return _activatedActionList; }
|
|
set { _activatedActionList = value; }
|
|
}
|
|
/// <summary>
|
|
/// 窗体重新加载时处理列表
|
|
/// </summary>
|
|
[DefaultValue(null)]
|
|
public List<DesignAction> ReloadActionList
|
|
{
|
|
get { return _reloadActionList; }
|
|
set { _reloadActionList = value; }
|
|
}
|
|
/// <summary>
|
|
/// 是否有动画
|
|
/// </summary>
|
|
public bool BHaveAction
|
|
{
|
|
get { return _bHaveAction; }
|
|
set { _bHaveAction = value; }
|
|
}
|
|
|
|
public string MCKey { get; set; }
|
|
|
|
public object MCValue { get; set; }
|
|
|
|
public bool MCSyschronousData { get; set; }
|
|
|
|
public IBaseControl MCRoot { get; set; }
|
|
|
|
public string MCDataSourceID { get; set; }
|
|
|
|
public MCDataSource MCDataSource { get; set; }
|
|
|
|
public bool IsDbControl { get; set; }
|
|
|
|
public string InitDataSource { get; set; }
|
|
|
|
public string ActionDataSource { get; set; }
|
|
|
|
public object BindDataSource { get; set; }
|
|
|
|
public DbOptionTypes DbOptionType { get; set; }
|
|
|
|
|
|
public bool MCVisible
|
|
{
|
|
get
|
|
{
|
|
return this.Visible;
|
|
}
|
|
set
|
|
{
|
|
this.Visible = value;
|
|
}
|
|
}
|
|
|
|
public bool MCEnabled
|
|
{
|
|
get
|
|
{
|
|
return this.Enabled;
|
|
}
|
|
set
|
|
{
|
|
this.Enabled = value;
|
|
}
|
|
}
|
|
|
|
public bool IsValid
|
|
{
|
|
get { return this._isValid; }
|
|
set { this._isValid = value; }
|
|
}
|
|
|
|
#region IPurviewControl 成员
|
|
|
|
public bool MCPurview { get; set; }
|
|
|
|
#endregion
|
|
}
|
|
}
|