using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
namespace Mesnac.Controls.Base
{
///
/// 控件基础接口
///
public interface IBaseControl
{
///
/// 标记控件内容类型
///
string MCKey { get; set; }
///
/// 控件值
///
object MCValue { get; set; }
///
/// 是否为数据库控件
///
bool IsDbControl { get; set; }
///
/// 控件根节点
///
IBaseControl MCRoot { get; set; }
///
/// DataSource
///
[TypeConverter(typeof(DataSourceConverter))]
string MCDataSourceID { get; set; }
MCDataSource MCDataSource { get; set; }
///
/// 初始化SQL
///
string InitDataSource { get; set; }
///
/// 执行SQL
///
string ActionDataSource { get; set; }
///
/// 绑定数据库
///
object BindDataSource { get; set; }
DbOptionTypes DbOptionType { get; set; }
///
/// 是否可见
///
bool MCVisible { get; set; }
///
/// 是否可用
///
bool MCEnabled { get; set; }
///
/// 是否有效
///
bool IsValid { get; set; }
///
/// 事件是否有效
///
bool IsEventValid { get; set; }
}
public enum DbOptionTypes
{
None,
Query,
Modify,
QueryAndModify,
InitData
}
}