Skip to content

Commit

Permalink
Add IWorkspace.Create (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
dalyIsaac authored Jul 3, 2022
1 parent f63bc86 commit 5546d26
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Whim/Workspace/IWorkspace.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,16 @@ public interface IWorkspace
/// <param name="doLayout">Indicates whether to do a layout after unregistering the phantom window.</param>
public void UnregisterPhantomWindow(ILayoutEngine engine, IWindow window, bool doLayout = false);
#endregion

/// <summary>
/// Creates a new workspace.
/// </summary>
/// <param name="configContext"></param>
/// <param name="name">The name of the workspace.</param>
/// <param name="layoutEngines">The layout engines to load into the workspace.</param>
/// <returns></returns>
public static IWorkspace CreateWorkspace(IConfigContext configContext, string name, params ILayoutEngine[] layoutEngines)
{
return new Workspace(configContext, name, layoutEngines);
}
}

0 comments on commit 5546d26

Please sign in to comment.