Esempio n. 1
0
        public CodeBase Analyze(string configFile, string projectFileLocation)
        {
            var commandArgument = fileDeserializer.Deserialize(configFile);
            var codeBase        = Analyze(commandArgument);

            var projectResultFileName = $"{commandArgument.ProjectName}.project";
            var projectResultFile     = Path.Combine(projectFileLocation, projectResultFileName);

            codebaseService.Save(codeBase, projectResultFile);

            return(codeBase);
        }
Esempio n. 2
0
        public void Save()
        {
            var dialog = new SaveFileDialog
            {
                Filter       = "Metropolis Project File (*.project)|*.project",
                AddExtension = true
            };

            if (!dialog.ShowDialog().GetValueOrDefault(false))
            {
                return;
            }

            using (new WaitCursor())
            {
                codebaseService.Save(CodeBase, dialog.FileName);
            }
        }