Esempio n. 1
0
        // --------------------------------------------------------------------------------------------------
        #region Commands Tab

        /// <summary>
        /// Insert the CommandList control into the window
        /// </summary>
        private void InitializeCommandManager()
        {
            this.commandManager = new CommandManager(Program.TransceiverInformation, Program.BlastIR, Program.LearnIR, Program.ProcessCommand);
            this.commandManager.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
            this.commandManager.Dock = System.Windows.Forms.DockStyle.Fill;
            this.commandManager.Name = "commandManager";
            this.commandManager.CommandGenerated += commandManager_CommandGenerated;
            this.commandManager.treeViewCommandList.AfterSelect += commandManager_AfterSelect;
            this.commandManager.treeViewCommandList.Enter += commandManager_Enter;
            this.commandManager.treeViewCommandList.Leave += commandManager_Leave;

            this.splitContainerMain.Panel2MinSize = 250; // Do it here to avoid bug in VS designer
            this.tabPageCommands.Controls.Add(this.commandManager);
        }
Esempio n. 2
0
        // --------------------------------------------------------------------------------------------------
        #region commandManager callbacks

        /// <summary>
        /// Insert the CommandList control into the window
        /// </summary>
        private void InitializeCommandManager()
        {
            this.commandList = new CommandManager(_server, _blast, _learnIr, _ProcessCommand, true);
            this.commandList.Dock = System.Windows.Forms.DockStyle.Fill;
            this.commandList.Name = "commandList";
            this.commandList.CommandGenerated += commandList_CommandGenerated;
            this.commandList.treeViewCommandList.AfterSelect += commandList_AfterSelect;
            this.commandList.treeViewCommandList.MouseDown += new System.Windows.Forms.MouseEventHandler(this.commandList_MouseDown);

            this.splitContainerMain.Panel2MinSize = 230; // Do it here to avoid bug in VS designer
            this.splitContainerMain.Panel2.Controls.Add(this.commandList);

        }