private void BindVariableNames(string fileName, string tableName) { List <vVariable> variableNameList = PredictedObservedDS.GetDistinctVariableNames(fileName, tableName); vVariable selectItem = new vVariable(); selectItem.Name = "Select a Variable"; selectItem.Value = "0"; variableNameList.Insert(0, selectItem); ddlVariableName.DataSource = variableNameList; ddlVariableName.DataBind(); }
private void BindApsimFileNames() { List <vVariable> fileNameList = ApsimFilesDS.GetDistinctApsimFileNames(); vVariable selectItem = new vVariable(); selectItem.Name = "Select a File"; selectItem.Value = "0"; fileNameList.Insert(0, selectItem); ddlApsimFile.DataSource = fileNameList; ddlApsimFile.DataBind(); }
private void BindTableNames(string renameType, string fileName) { List <vVariable> tableNameList = PredictedObservedDS.GetDistinctTableNames(fileName); vVariable selectItem = new vVariable(); selectItem.Name = "Select a Table"; selectItem.Value = "0"; tableNameList.Insert(0, selectItem); ddlTableName.DataSource = tableNameList; ddlTableName.DataBind(); }