private void NewSolution(string[] args) { ActiveSolution = RedCodeSolution.New(); AddNewProject(); ActiveSolution.IsModified = false; if (args != null && args.Length > 0) { bool interactive; string saveProjectFile; ActiveProject.Project = CommandLine.Prepare(args, ActiveSolution.Components, ConsoleControl, out interactive, out saveProjectFile); } SolutionExplorer.ReloadSolution(); RefreshControls(); }
public static RedCodeSolution Load(string fileName) { RedCodeSolution solution = new RedCodeSolution(); solution.FileName = fileName; solution.Load(); solution.IsNew = false; solution.IsModified = false; return solution; }
public void LoadSolution(string fileName) { if (File.Exists(fileName)) { ActiveSolution = RedCodeSolution.Load(fileName); SolutionExplorer.ReloadSolution(); AddRecentProject(fileName); MainForm.RefreshRecent(); RefreshControls(); } else { if (Settings != null && Settings.RecentProjects.Contains(fileName)) { Settings.RecentProjects.Remove(fileName); MainForm.RefreshRecent(); } } }
public static RedCodeSolution New() { RedCodeSolution solution = new RedCodeSolution(); SolutionCounter++; solution.FileName = "NewSolution" + SolutionCounter + ".nmsln"; solution.IsNew = true; solution.IsModified = false; return solution; }