private void checkCombo_DataFill(object sender, UtilityLibrary.Combos.TreeCombo.EventArgsTreeDataFill e) { string dbConn = this.txtDbConn.Text.ToString().Trim(); if (!String.IsNullOrEmpty(dbConn) && !this.ckCombo.FillCalled) { List <string> tabNames = new List <string>(); var dbType1 = this.dbMySql.Checked; var dbType2 = this.dbSqlServer.Checked; if (dbType1 && !dbType2) { tabNames = MySqlHelper.GetTables(dbConn); } if (!dbType1 && dbType2) { string dbName = SqlServiceHelper.GetDBName(dbConn); tabNames = SqlServiceHelper.GetTables(dbConn, dbName); } if (tabNames.Count > 0) { e.BindedControl.Nodes.Clear(); foreach (var o in tabNames) { e.BindedControl.Nodes.Add(o); } } } }
private void checkCombo1_DataFill(object sender, UtilityLibrary.Combos.TreeCombo.EventArgsTreeDataFill e) //采取措施下拉菜单内容 { e.BindedControl.Nodes.Add("严格执行工作面防冲专项安全技术措施"); e.BindedControl.Nodes.Add("可以正常生产"); e.BindedControl.Nodes.Add("降低推进速度匀速推进"); e.BindedControl.Nodes.Add("有冲击危险降低推进速度"); e.BindedControl.Nodes.Add("无法正常生产"); e.BindedControl.Nodes.Add("经治理采取措施后可正常生产"); e.BindedControl.Nodes.Add("经钻屑检验可正常生产"); }
private void checkCombo_DataFill(object sender, UtilityLibrary.Combos.TreeCombo.EventArgsTreeDataFill e) { var tabFrom = this.ckTabFrom.Checked; string dbConn = this.txtDbConn.Text.ToString().Trim(); if (tabFrom && !String.IsNullOrEmpty(dbConn) && !this.ckCombo.FillCalled) { List <string> tabNames = MySqlHelper.GetTables(dbConn); if (tabNames.Count > 0) { e.BindedControl.Nodes.Clear(); foreach (var o in tabNames) { e.BindedControl.Nodes.Add(o); } } } }