|
using Microsoft.Practices.CompositeUI;
using Microsoft.Practices.ObjectBuilder;
using DialogBox.Infrastructure.Interface.Constants;
using DialogBox.Infrastructure.Library.UI;
namespace DialogBox.Infrastructure.Layout
{
public class Module : ModuleInit
{
private WorkItem _rootWorkItem;
[InjectionConstructor]
public Module([ServiceDependency] WorkItem rootWorkItem)
{
_rootWorkItem = rootWorkItem;
}
public override void Load()
{
base.Load();
// Add layout view to the shell
ShellLayoutView _shellLayout = _rootWorkItem.Items.AddNew<ShellLayoutView>();
_rootWorkItem.Workspaces[WorkspaceNames.LayoutWorkspace].Show(_shellLayout);
// Add window workspace to be used for modal windows
WindowWorkspace wsp = new WindowWorkspace(_shellLayout.ParentForm);
_rootWorkItem.Workspaces.Add(wsp, WorkspaceNames.ModalWindows);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Program Manager in Sculpture project, Interesting in .NET Model driven development.