Ejemplo n.º 1
0
        private void saveAll()
        {
            if (!Directory.Exists(subsSaveDir))
            {
                Directory.CreateDirectory(subsSaveDir);
            }

            IOSerialize.writingJson(subsProfiles[0], subsSaveDir);
        }
Ejemplo n.º 2
0
        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);
        }