Esempio n. 1
0
 public FileOpr(ConfigSettings cf)
 {
     _cfsetttings = cf;
     if (cf.RecType == 0)
     {
         FileTool = new FileParseXiaoMi();
     }
     else
     {
         FileTool = new FileParseXiaoMi();
     }
     FileTool.SetRootDir(cf.RootDirArr);
 }
Esempio n. 2
0
        private void InitFileParseTool()
        {
            switch (_cfsettings.RecType)
            {
            case 0:     //XiaoMi
                _fileParseTool = new FileParseXiaoMi();
                break;

            default:
                _fileParseTool = new FileParseXiaoMi();
                break;
            }
            _fileParseTool.SetRootDir(_cfsettings.RootDirArr);
        }