/// <summary> /// 重载构造函数,获取数据源中的表集合 /// </summary> public FrmLoginDataSource(ControlContent come) { InitializeComponent(); this.Shown += new EventHandler(FrmLoginDb_Shown); this.FormClosed += new FormClosedEventHandler(FrmLoginDb_FormClosed); runcome = come; }
public FrmTableColumnInfo(ControlContent con, string tablename) { InitializeComponent(); //系统帮助 this.helpProvider1.SetShowHelp(this, true); this.helpProvider1.SetHelpString(this.Btn_builder, "生成代码片段"); content = con; tbname = tablename; }
/// <summary> /// 初始化表结构视图 /// </summary> /// <param name="tbname">表的名称</param> /// <param name="connstring">数据源连接</param> public ControlTableView(string tbname, string connstring, ControlContent c) { InitializeComponent(); this.Load += new EventHandler(TableView_Load); thistbname = tbname; thisconnstring = connstring; if (tbname.Length > 20) { tbname = tbname.Substring(0, 15) + "..."; } Lb_tbname.Text = tbname; thiscontent = c; }
public FrmBuilderSelect(Point location, ControlContent c) { InitializeComponent(); this.Location = location; content = c; }