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.

55 lines
1.3 KiB
C#

1 year ago
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;
namespace Mesnac.Controls.Base
{
/// <summary>
/// 数据源控件
/// </summary>
[ToolboxBitmap(typeof(System.ComponentModel.Component))]
public partial class MCDataSource : Component
{
public MCDataSource()
{
InitializeComponent();
}
public MCDataSource(IContainer container)
{
container.Add(this);
InitializeComponent();
}
private string _tableName;
private string _mcKey;
/// <summary>
/// 表名
/// </summary>
public string TableName
{
get { this._tableName = this._mcKey; return _tableName; }
set { _tableName = value; this._mcKey = value; }
}
/// <summary>
/// 数据源
/// </summary>
public string MCKey
{
get { return this._mcKey; }
set { this._mcKey = value; this._tableName = value; }
}
public override string ToString()
{
return this.Site.Name;
}
}
}