//---------------------------------------------------------------------------------------- // patterns & practices - Smart Client Software Factory - Guidance Package // // This file was generated by the "Add CAB Module" recipe. // // This class contains placeholder methods for the common module initialization // tasks, such as adding services, or user-interface element // // For more information see: // ms-help://MS.VSCC.v80/MS.VSIPCC.v80/ms.practices.scsf.2007may/SCSF/html/03-01-010-How_to_Create_Smart_Client_Solutions.htm // // Latest version of this Guidance Package: http://go.microsoft.com/fwlink/?LinkId=62182 //---------------------------------------------------------------------------------------- using System; using System.Windows.Forms; using Microsoft.Practices.CompositeUI; using Microsoft.Practices.CompositeUI.Commands; using DialogBox.Infrastructure.Interface; namespace DialogBox.Infrastructure.Module { public class ModuleController : WorkItemController { public override void Run() { AddServices(); ExtendMenu(); ExtendToolStrip(); AddViews(); } private void AddServices() { //TODO: add services provided by the Module. See: Add or AddNew method in WorkItem.Services collection or // See: ms-help://MS.VSCC.v80/MS.VSIPCC.v80/ms.practices.2005Nov.cab/CAB/html/03-020-Adding%20Services.htm } private void ExtendMenu() { //TODO: add menu items here, normally by calling the "Add" method on // on the WorkItem.UIExtensionSites collection. For an example // See: ms-help://MS.VSCC.v80/MS.VSIPCC.v80/ms.practices.scsf.2007may/SCSF/html/02-04-340-Showing_UIElements.htm } private void ExtendToolStrip() { //TODO: add new items to the ToolStrip in the Shell. See the UIExtensionSites collection in the WorkItem. // See: ms-help://MS.VSCC.v80/MS.VSIPCC.v80/ms.practices.scsf.2007may/SCSF/html/02-04-340-Showing_UIElements.htm } private void AddViews() { //TODO: create the Module views, add them to the WorkItem and show them in // a Workspace. See: ms-help://MS.VSCC.v80/MS.VSIPCC.v80/ms.practices.scsf.2007may/SCSF/html/03-01-040-How_to_Add_a_View_with_a_Presenter.htm } //TODO: Add CommandHandlers and/or Event Subscriptions // See ms-help://MS.VSCC.v80/MS.VSIPCC.v80/ms.practices.scsf.2007may/SCSF/html/02-04-350-Registering_Commands.htm // See ms-help://MS.VSCC.v80/MS.VSIPCC.v80/ms.practices.scsf.2007may/SCSF/html/02-04-320-Publishing_and_Subscribing_to_Events.htm } }
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.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)