Beispiel #1
0
        //============================================================
        // <T>从文件中加载所有信息。</T>
        //============================================================
        public void RestoreFiles()
        {
            // 保存属性
            string    configName = RFile.MakeFileName(_storagePath, "applications.ser");
            FByteFile file       = new FByteFile(configName);
            // 写入个数
            int count = file.ReadInt32();

            // 保存所有程序信息
            for (int n = 0; n < count; n++)
            {
                FApplicationInfo info = new FApplicationInfo();
                info.Name = file.ReadString();
                // 保存程序信息
                string fileName = RFile.MakeFileName(_storagePath, info.Name + ".ser");
                info.LoadFile(fileName);
                _infos.Push(info);
                _activeInfo = info;
            }
        }