コード例 #1
0
ファイル: IDEApplication.cs プロジェクト: pavelsavara/nMars
 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();
 }
コード例 #2
0
ファイル: RedCodeSolution.cs プロジェクト: pavelsavara/nMars
 public static RedCodeSolution Load(string fileName)
 {
     RedCodeSolution solution = new RedCodeSolution();
     solution.FileName = fileName;
     solution.Load();
     solution.IsNew = false;
     solution.IsModified = false;
     return solution;
 }
コード例 #3
0
ファイル: IDEApplication.cs プロジェクト: pavelsavara/nMars
 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();
         }
     }
 }
コード例 #4
0
ファイル: RedCodeSolution.cs プロジェクト: pavelsavara/nMars
 public static RedCodeSolution New()
 {
     RedCodeSolution solution = new RedCodeSolution();
     SolutionCounter++;
     solution.FileName = "NewSolution" + SolutionCounter + ".nmsln";
     solution.IsNew = true;
     solution.IsModified = false;
     return solution;
 }