/// <summary> /// Fils the file list contents. /// </summary> public virtual void fillFileJListContents() { string iline, format = "%-16.16s%-12.12s%-48s", rtn = "fillFileListContents()"; string filename; string[] filelist = new string[] { __basinName + ".xbg", "Base Flow", "Gaged base flow estimates", __basinName + ".xbi", "Base Flow", "Base flow information at stream gage locations", __basinName + ".xbm", "Base Flow", "Base flow estimates formatted for model input", __basinName + ".xri", "Simulate", "River (stream) gage data", __basinName + ".xss", "Simulate", "Structure Summary (if variable efficiency is used)", __basinName + ".xbn", "Report", "ASCII listing of Binary Direct and Instream Data", __basinName + ".xcu", "Report", "Simulated Diversions and Consumptive Use Summary", __basinName + ".xdc", "Report", "Diversion comparison file", __basinName + ".xdd", "Report", "Direct and instream diversion monthly " + "data (very large)", __basinName + ".xdg", "Report", "Direct and instream diversions and gage graph files", __basinName + ".xdy", "Report", "Direct and instream diversion daily data (very large)", __basinName + ".xgw", "Report", "Ground Water balance", __basinName + ".xir", "Report", "Instream reach summary", __basinName + ".xnm", "Report", "Detailed node accounting for all years", __basinName + ".xna", "Report", "Detailed node accounting average", __basinName + ".xop", "Report", "Operation Right Summary", __basinName + ".xpl", "Report", "Plan output file.", __basinName + ".xrc", "Report", "Reservoir comparison file", __basinName + ".xre", "Report", "Reservoir monthly data (total and by account)", __basinName + ".xrg", "Report", "Reservoir graph file", __basinName + ".xrx", "Report", "River data summary", __basinName + ".xry", "Report", "Reservoir daily data (total and by account)", __basinName + ".xsc", "Report", "Stream flow gage comparison file", __basinName + ".xsh", "Report", "Diversion shortage", __basinName + ".xsp", "Report", "Selected Parameter printout", __basinName + ".xsu", "Report", "Water supply summary", __basinName + ".xtb", "Report", "Summary table", __basinName + ".xwb", "Report", "Water balance", __basinName + ".xwc", "Report", "Well comparison file", __basinName + ".xwd", "Report", "Consumptive Use by Water District", __basinName + ".xwe", "Report", "Monthly water use and source for each structure " + "with well", __basinName + ".xwg", "Report", "Well graph file", __basinName + ".xwr", "Report", "Water right list sorted by basin rank", __basinName + ".xwy", "Report", "Daily water use and source for each structure with " + "well", __basinName + ".xcb", "Data Check", "Base flow by river ID", __basinName + ".xcd", "Data Check", "Direct demand by river ID", __basinName + ".xci", "Data Check", "Instream demand by river ID", __basinName + ".xcw", "Data Check", "Well demand by river ID", __basinName + ".xwr", "Data Check", "Same as *.xwr from the report option", __basinName + ".xou", "Data Check", "List of ID's for specific ID data requests", "delplt.xgr", "Delplt", "Scenario comparison", __basinName + ".chk", "Check File", "Check file from StateMod run (summary of run).", __basinName + ".log", "Log File", "Log file from StateMod run (step by step history of run).", "smgui.log", "Log File", "Log file from StateModGUI run.", "delplt.log", "Log File", "Log file from Delplt run." }; int i = 0; int length = filelist.Length; IList <string> overall = new List <string>(); IList <object> v1 = new List <object>(3); v1.Add("File"); v1.Add("Contents"); v1.Add("Description"); iline = StringUtil.formatString(v1, format); overall.Add(iline); IList <object> v2 = new List <object>(3); v2.Add("----"); v2.Add("--------"); v2.Add("-----------"); iline = StringUtil.formatString(v2, format); overall.Add(iline); if (Message.isDebugOn) { Message.printDebug(1, rtn, __path); } while (i < length) { filename = __path + filelist[i]; if (IOUtil.fileReadable(filename)) { Message.printStatus(10, rtn, "Adding " + filename); IList <object> v = new List <object>(3); v.Add(filelist[i++]); v.Add(filelist[i++]); v.Add(filelist[i++]); iline = StringUtil.formatString(v, format); overall.Add(iline); } else { if (Message.isDebugOn) { Message.printDebug(10, rtn, "NOT adding " + filename); } i += 3; } } __fileJList.setListData(new List <object>(overall)); }