/// <summary> /// Loads the info in the DynVarManager /// </summary> private void loadDynVars() { if (DynVarManager.DynamicOption) { try { manager.Load(); } catch (DynVarException e) { ErrorManager.Instance.NotifyError(new LoadingDynVarsError(e.Message)); } } else { string dynFile = Path.ChangeExtension(this.currentFile, DynVarManagement.DynVarManager.DynVarFileExt); if (File.Exists(dynFile)) { try { manager.Load(dynFile); } catch (DynVarManagement.DynVarException e) { ErrorManager.Instance.NotifyError(new LoadingDynVarsError(e.Message)); } } } }
/// <summary> /// Loads the info in the DynVarManager /// </summary> private void loadDynVars() { //string dynFile = Path.ChangeExtension(this.directories[this.currentFile] + "\\" + this.currentFile, DynVarManagement.DynVarManager.DynVarFileExt); string dynFile = Path.ChangeExtension(this.currentFile, DynVarManagement.DynVarManager.DynVarFileExt); if (File.Exists(dynFile)) { try { manager.Load(dynFile); } catch (DynVarManagement.DynVarException e) { ErrorManager.Instance.NotifyError(new LoadingDynVarsError(e.Message)); } } }