public void ChangeExcelPath(string newPath)
        {
            if (_excelDirectoryListener != null)
            {
                _excelDirectoryListener.Stop();
            }

            //  save
            Config.ExcelPath = newPath;
            JsonHelp.SaveFile(GlobalConfigPath, _globalConfig);

            _excelDirectoryListener = FileListener.FetchFileListener(Config.ExcelPath, OnExcelPathChange);

            ReloadExcelPath();
        }
        public GlobalDataManager()
        {
            string configPath = Directory.GetCurrentDirectory() + "/Config";

            if (!Directory.Exists(configPath))
            {
                Directory.CreateDirectory(configPath);
            }
            GlobalConfigPath = configPath + "/global.json";
            CodeKeyDataPath  = configPath + "/codekey.json";
            _templatePath    = configPath + "/Template";


            _excelDirectoryListener  = FileListener.FetchFileListener(Config.ExcelPath, OnExcelPathChange);
            _configDirectoryListener = FileListener.FetchFileListener(configPath, OnConfigPathChange);
        }