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