void RefreshSaveData() { List <String> list; saveDataList.Items.Clear(); try { list = QuerySaveDatas(GlobalData.SavePath); } catch { return; } foreach (var save in list) { try { EDAOSaveData savedata = new EDAOSaveData(save + "\\savedata.dat"); var item = new SaveDataListItem(savedata); this.saveDataList.Items.Add(item); } catch { } } }
void RefreshSaveData() { List<String> list; saveDataList.Items.Clear(); try { list = QuerySaveDatas(savePath); } catch { return; } foreach (var save in list) { try { EDAOSaveData savedata = new EDAOSaveData(save + "\\savedata.dat"); var item = new SaveDataListItem(savedata); this.saveDataList.Items.Add(item); } catch { } } }