Example #1
0
        /// <summary>
        /// Initializes the module.
        /// </summary>
        public void Initialize()
        {
            // Add a view in the right panel in the interaction window

            // Here we register the view (GUI) "InstGenesysView" and its behavior counterpart "InstGenesysModel"
            container.RegisterType <ICiscoVoiceModel, CiscoVoiceModel>();
            container.RegisterType <ICiscoVoiceView, CiscoVoiceView>();

            // Put the MySample view in the region "InteractionWorksheetRegion" //InteractionDetailsRegion
            //viewManager.ViewsByRegionName["InteractionsBundleRegion"].Clear();
            viewManager.ViewsByRegionName["InteractionsBundleRegion"].Insert(0,
                                                                             new ViewActivator()
            {
                ViewType = typeof(ICiscoVoiceView), ViewName = "CiscoVoice", ActivateView = true, Condition = CiscoVoiceModel.CiscoVoiceViewModelCondition
            }
                                                                             );
            //Register The commands
            commandManager.AddCommandToChainOfCommand("CiscoVoiceStopProcessingCommand",
                                                      new List <CommandActivator>()
            {
                new CommandActivator()
                {
                    CommandType = typeof(CiscoVoiceStopProcessingCommand),
                    Name        = "StopProcessing"
                }
            });
        }