Beispiel #1
0
 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();
 }
Beispiel #2
0
 public static RedCodeSolution Load(string fileName)
 {
     RedCodeSolution solution = new RedCodeSolution();
     solution.FileName = fileName;
     solution.Load();
     solution.IsNew = false;
     solution.IsModified = false;
     return solution;
 }
Beispiel #3
0
 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();
         }
     }
 }
Beispiel #4
0
 public static RedCodeSolution New()
 {
     RedCodeSolution solution = new RedCodeSolution();
     SolutionCounter++;
     solution.FileName = "NewSolution" + SolutionCounter + ".nmsln";
     solution.IsNew = true;
     solution.IsModified = false;
     return solution;
 }