Beispiel #1
0
        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();
        }
Beispiel #2
0
        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();
        }
Beispiel #3
0
        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();
        }