internal Exception CreateNewInternal() { Exception caught_exception = null; var new_project_model = new PhxStudioProject(); this.Model = new_project_model; return(caught_exception); }
internal Exception OpenInternal(string path) { Exception caught_exception = null; try { var opened_project_model = new PhxStudioProject(); using (var s = new XmlElementStream(path, FileAccess.Read)) { s.InitializeAtRootElement(); opened_project_model.Serialize(s); } this.Model = opened_project_model; } catch (Exception ex) { caught_exception = ex; } return(caught_exception); }