private void saveAll() { if (!Directory.Exists(subsSaveDir)) { Directory.CreateDirectory(subsSaveDir); } IOSerialize.writingJson(subsProfiles[0], subsSaveDir); }
public Form1() { InitializeComponent(); Lang.InitControl(this); subsProfiles = new List <SubsProfile>(); profiles = new List <Dictionary <string, object> >(); SubsProfile subsProfile0 = new SubsProfile(); string filepath = string.Format("{0}\\{1}.json", subsSaveDir, Utils.MD5Sum("-")); if (File.Exists(filepath)) { SubsProfile temp = IOSerialize.readingJson(filepath); subsProfile0.subsRefList = temp.subsRefList; } subsProfiles.Add(subsProfile0); }