void printFile() { superScrollView.clear(); FileInfo[] fileInfos = (new DirectoryInfo("replay")).GetFiles(); if (Config.Get(sort, "1") == "1") { Array.Sort(fileInfos, UIHelper.CompareTime); } else { Array.Sort(fileInfos, UIHelper.CompareName); } for (int i = 0; i < fileInfos.Length; i++) { if (fileInfos[i].Name.Length > 6) { if (fileInfos[i].Name.Length > 6 && fileInfos[i].Name.Substring(fileInfos[i].Name.Length - 6, 6) == ".yrp3d") { superScrollView.add(fileInfos[i].Name.Substring(0, fileInfos[i].Name.Length - 6)); } if (fileInfos[i].Name.Length > 4 && fileInfos[i].Name.Substring(fileInfos[i].Name.Length - 4, 4) == ".yrp") { superScrollView.add(fileInfos[i].Name); } } } }
void printFile() { string deckInUse = Config.Get("deckInUse", "miaowu"); superScrollView.clear(); FileInfo[] fileInfos = (new DirectoryInfo(DECK_PATH)).GetFiles(); if (Config.Get(sort, "1") == "1") { Array.Sort(fileInfos, UIHelper.CompareTime); } else { Array.Sort(fileInfos, UIHelper.CompareName); } for (int i = 0; i < fileInfos.Length; i++) { if (fileInfos[i].Name.Length > 4) { if (fileInfos[i].Name.Substring(fileInfos[i].Name.Length - 4, 4) == ".ydk") { if (fileInfos[i].Name.Substring(0, fileInfos[i].Name.Length - 4) == deckInUse) { if (searchInput.value == "" || Regex.Replace(fileInfos[i].Name, searchInput.value, "miaowu", RegexOptions.IgnoreCase) != fileInfos[i].Name) { superScrollView.add(fileInfos[i].Name.Substring(0, fileInfos[i].Name.Length - 4)); } } } } } for (int i = 0; i < fileInfos.Length; i++) { if (fileInfos[i].Name.Length > 4) { if (fileInfos[i].Name.Substring(fileInfos[i].Name.Length - 4, 4) == ".ydk") { if (fileInfos[i].Name.Substring(0, fileInfos[i].Name.Length - 4) != deckInUse) { if (searchInput.value == "" || Regex.Replace(fileInfos[i].Name, searchInput.value, "miaowu", RegexOptions.IgnoreCase) != fileInfos[i].Name) { superScrollView.add(fileInfos[i].Name.Substring(0, fileInfos[i].Name.Length - 4)); } } } } } if (superScrollView.Selected() == false) { superScrollView.selectTop(); } }
void printFile() { string deckInUse = Config.Get("deckInUse", "wizard"); superScrollView.clear(); FileInfo[] fileInfos = (new DirectoryInfo("deck")).GetFiles(); if (Config.Get(sort, "1") == "1") { Array.Sort(fileInfos, UIHelper.CompareTime); } else { Array.Sort(fileInfos, UIHelper.CompareName); } for (int i = 0; i < fileInfos.Length; i++) { if (fileInfos[i].Name.Length > 4) { if (fileInfos[i].Name.Substring(fileInfos[i].Name.Length - 4, 4) == ".ydk") { if (fileInfos[i].Name.Substring(0, fileInfos[i].Name.Length - 4) == deckInUse) { superScrollView.add(fileInfos[i].Name.Substring(0, fileInfos[i].Name.Length - 4)); } } } } for (int i = 0; i < fileInfos.Length; i++) { if (fileInfos[i].Name.Length > 4) { if (fileInfos[i].Name.Substring(fileInfos[i].Name.Length - 4, 4) == ".ydk") { if (fileInfos[i].Name.Substring(0, fileInfos[i].Name.Length - 4) != deckInUse) { superScrollView.add(fileInfos[i].Name.Substring(0, fileInfos[i].Name.Length - 4)); } } } } }
void printFile() { superScrollView.clear(); List <string[]> args = new List <string[]>(); FileInfo[] fileInfos = (new DirectoryInfo("puzzle")).GetFiles(); Array.Sort(fileInfos, UIHelper.CompareName); for (int i = 0; i < fileInfos.Length; i++) { if (fileInfos[i].Name.Length > 4) { if (fileInfos[i].Name.Substring(fileInfos[i].Name.Length - 4, 4) == ".lua") { superScrollView.add(fileInfos[i].Name.Substring(0, fileInfos[i].Name.Length - 4)); } } } }
private void printFile() { superScrollView.clear(); superScrollView.toTop(); if (hideAI) { listOfRooms.RemoveAll(s => s[11].Contains("AI")); } if (hideStarted) { listOfRooms.RemoveAll(s => Convert.ToInt32(s[10]) != 0); } listOfRooms.TrimExcess(); listOfRooms = listOfRooms.OrderBy(s => s[3]).ToList(); foreach (string[] room in listOfRooms) { superScrollView.add(room[9]); } }
void printFile() { string deckInUse = Config.Get("deckInUse", "miaowu"); superScrollView.clear(); FileInfo[] fileInfos = (new DirectoryInfo("deck")).GetFiles(); if (Config.Get(sort, "1") == "1") { Array.Sort(fileInfos, UIHelper.CompareTime); } else { Array.Sort(fileInfos, UIHelper.CompareName); } for (int i = 0; i < fileInfos.Length; i++) { if (fileInfos[i].Name.Length > 4) { if (fileInfos[i].Name.Substring(fileInfos[i].Name.Length - 4, 4) == ".ydk") { if (fileInfos[i].Name.Substring(0, fileInfos[i].Name.Length - 4) == deckInUse) { superScrollView.add(fileInfos[i].Name.Substring(0, fileInfos[i].Name.Length - 4)); } } } } for (int i = 0; i < fileInfos.Length; i++) { if (fileInfos[i].Name.Length > 4) { if (fileInfos[i].Name.Substring(fileInfos[i].Name.Length - 4, 4) == ".ydk") { if (fileInfos[i].Name.Substring(0, fileInfos[i].Name.Length - 4) != deckInUse) { superScrollView.add(fileInfos[i].Name.Substring(0, fileInfos[i].Name.Length - 4)); } } } } list_aideck.Clear(); fileInfos = (new DirectoryInfo("ai/ydk")).GetFiles(); Array.Sort(fileInfos, UIHelper.CompareName); list_aideck.AddItem(suiji); for (int i = 0; i < fileInfos.Length; i++) { if (fileInfos[i].Name.Length > 4) { if (fileInfos[i].Name.Substring(fileInfos[i].Name.Length - 4, 4) == ".ydk") { list_aideck.AddItem(fileInfos[i].Name.Substring(0, fileInfos[i].Name.Length - 4)); } } } list_airank.Clear(); fileInfos = (new DirectoryInfo("ai")).GetFiles(); Array.Sort(fileInfos, UIHelper.CompareName); for (int i = 0; i < fileInfos.Length; i++) { if (fileInfos[i].Name.Length > 4) { if (fileInfos[i].Name.Substring(fileInfos[i].Name.Length - 4, 4) == ".lua") { list_airank.AddItem(fileInfos[i].Name.Substring(0, fileInfos[i].Name.Length - 4)); } } } }