コード例 #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public ViewSwitchingSnapIn()
        {
            // Create the root node
            ViewSwitchingScopeNode viewSwitchingScopeNode = new ViewSwitchingScopeNode();

            this.RootNode = viewSwitchingScopeNode;

            // attach a view and set as the default
            viewSwitchingScopeNode.AddViewDescription("Normal Message View", typeof(NormalMessageView));
            viewSwitchingScopeNode.ViewDescriptions.DefaultIndex = 0;
        }
コード例 #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        public ViewSwitchingSnapIn()
        {
            // Create the root node
            ViewSwitchingScopeNode viewSwitchingScopeNode = new ViewSwitchingScopeNode();
            this.RootNode = viewSwitchingScopeNode;

            // attach a view and set as the default
            viewSwitchingScopeNode.AddViewDescription("Normal Message View", typeof(NormalMessageView));
            viewSwitchingScopeNode.ViewDescriptions.DefaultIndex = 0;
        }