예제 #1
0
 /// <summary>
 /// 重载构造函数,获取数据源中的表集合
 /// </summary>
 public FrmLoginDataSource(ControlContent come)
 {
     InitializeComponent();
     this.Shown      += new EventHandler(FrmLoginDb_Shown);
     this.FormClosed += new FormClosedEventHandler(FrmLoginDb_FormClosed);
     runcome          = come;
 }
예제 #2
0
 public FrmTableColumnInfo(ControlContent con, string tablename)
 {
     InitializeComponent();
     //系统帮助
     this.helpProvider1.SetShowHelp(this, true);
     this.helpProvider1.SetHelpString(this.Btn_builder, "生成代码片段");
     content = con;
     tbname = tablename;
 }
예제 #3
0
 /// <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;
 }
예제 #4
0
 public FrmBuilderSelect(Point location, ControlContent c)
 {
     InitializeComponent();
     this.Location = location;
     content       = c;
 }