Пример #1
0
 private InfoFile(FileInfo file, String version)
 {
     VERSION = version;
     if (file.Exists)
     {
         this.necessaryInfo = new NecessaryInfo(VERSION, file.FullName, file.Length.ToString(), null);
         //this.info = new Dictionary<string, BaseInfoType>();
     }
     else
     {
         file.Create().Close();
         throw new FileNotFoundException("无法找到源文件");
     }
 }
Пример #2
0
 protected InfoFile()
 {
     VERSION            = LATEST_VERSION;
     this.necessaryInfo = new NecessaryInfo(VERSION, null, null, null);
     //this.info = new Dictionary<string, BaseInfoType>();
 }
Пример #3
0
 protected InfoFile(InfoFileStructure infoStruct)
 {
     this.necessaryInfo = infoStruct.necessaryInfo;
     this.info          = infoStruct.info;
     this.VERSION       = this.necessaryInfo.Info["Version"];
 }