public string GetRapidManualPath() { string toolsPath = PathHelper.GetUserProcessingFolder(); // TODO: move cortona.config to other path string cortonaConfigFullPath = Path.Combine(toolsPath, CortonaConfigFileName); if (File.Exists(cortonaConfigFullPath)) { return(_jsonSerializer.DeserializeFromFile <CortonaConfigModel>(cortonaConfigFullPath).Path); } CreateConfigFile(cortonaConfigFullPath); return(DefaultCortonaPath); }
public IEnumerable <TopicModel> GetEditingTopicsFromFolder(string topicsFolderName) { return(Directory.GetFiles(topicsFolderName) .Select(t => _jsonSerializer.DeserializeFromFile <TopicModel>(t)) .Where(t => t.isOpened > 0)); }
private bool CheckIfScenarioIsPublishing(string scenarioFolder) { var infoFile = Path.Combine(scenarioFolder, new DirectoryInfo(scenarioFolder).Name + ".info"); return(_jsonSerializer.DeserializeFromFile <PublishedScenario>(infoFile).isPublishing); }