public bool OpenProject(string filePath) { if (!File.Exists(filePath)) { return(false); } try { CurrentProject = ProjectSerialization.LoadFromFile(filePath); CurrentProjectPath = filePath; } catch { return(false); } return(true); }
private async static Task RunProject(string path) { if (!File.Exists(path)) { Console.WriteLine($"Project file not found: {path}"); return; } Console.WriteLine($"Loading {path}..."); var project = ProjectSerialization.LoadFromFile(path); var runner = new ProjectRunner(); Console.WriteLine($"Running {path}..."); await runner.Run(project); Console.WriteLine($"Finished running {path}"); Console.WriteLine(); }