public FragmentMetaWindow() { InitializeComponent(); _menu = new MenuController(); _menu.Configure(mainMenu); new FragmentMenuController().Configure(this); WorkbenchWindowController.Instance.Configure(this); }
//singleton implementation private WorkbenchWindow() { InitializeComponent(); _controller = new WorkbenchListViewsController(); _controller.Configure(mainGrid); _menu = new MenuController(); _menu.Configure(mainMenu); this.Closing += Workbench_Closing; WorkbenchWindowController.Instance.ConfigureClosingEvent(this); new WorkbenchMenuController().Configure(this, _controller); }