using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Linq; using System.Text; using Mesnac.Controls.Base; using System.Drawing; namespace Mesnac.Controls.Default { [ToolboxBitmap(typeof(FastReport.Design.StandardDesigner.DesignerControl))] public partial class MCReportDesigner : FastReport.Design.StandardDesigner.DesignerControl, IPurviewControl { #region 字段定义 private bool _isValid = true; //保存有效性 private bool _isEventValid = true; //保存事件有效性 #endregion #region 构造方法 public MCReportDesigner() { InitializeComponent(); } public MCReportDesigner(IContainer container) { container.Add(this); InitializeComponent(); } #endregion #region 接口成员实现 public string MCKey { get; set; } public object MCValue { get; set; } public IBaseControl MCRoot { get { return null; } set { ; } } [TypeConverter(typeof(DataSourceConverter))] 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; set; } public bool MCEnabled { get; set; } public bool MCPurview { get; set; } public bool IsValid { get { return _isValid; } set { _isValid = value; } } public bool IsEventValid { get { return this._isEventValid; } set { this._isEventValid = value; } } #endregion } }