private bool OpenFile(WorkspaceInfo workspaceInfo, XmlDocument xmlDoc, out WorkspaceModel workspace) { CustomNodeManager.AddUninitializedCustomNodesInPath( Path.GetDirectoryName(workspaceInfo.FileName), IsTestMode); var result = workspaceInfo.IsCustomNodeWorkspace ? CustomNodeManager.OpenCustomNodeWorkspace(xmlDoc, workspaceInfo, IsTestMode, out workspace) : OpenHomeWorkspace(xmlDoc, workspaceInfo, out workspace); workspace.OnCurrentOffsetChanged( this, new PointEventArgs(new Point2D(workspaceInfo.X, workspaceInfo.Y))); return result; }