コード例 #1
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Make sure the current tab is selected when its grid get's focus.
 /// </summary>
 /// ------------------------------------------------------------------------------------
 private void HandleResultViewEnter(object sender, EventArgs e)
 {
     if (!m_selected || !OwningTabGroup.IsCurrent)
     {
         OwningTabGroup.SelectTab(this, true);
     }
 }
コード例 #2
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Moves the view's control from its form to the tab.
        /// </summary>
        /// ------------------------------------------------------------------------------------
        public void DockView()
        {
            if (_undockingInProgress || _viewDocked)
            {
                return;
            }

            App.MsgMediator.SendMessage("BeginViewDocking", View);
            Utils.SetWindowRedraw(OwningTabGroup, false, false);
            Visible = true;

            OwningTabGroup.ViewWasDocked(this);
            View.Size = OwningTabGroup.ClientSize;
            OwningTabGroup.Controls.Add(View);
            View.PerformLayout();
            View.BringToFront();

            _viewDocked         = true;
            _ignoreTabSelection = true;
            OwningTabGroup.SelectTab(this);
            _ignoreTabSelection = false;

            Utils.SetWindowRedraw(OwningTabGroup, true, true);
            View.Focus();
            OwningTabGroup.SetActiveView(View as ITabView, false);
            App.MsgMediator.SendMessage("ViewDocked", View);
        }
コード例 #3
0
        /// ------------------------------------------------------------------------------------
        void m_btnCIESimilarOptions_Click(object sender, EventArgs e)
        {
            if (!m_selected || !OwningTabGroup.IsCurrent)
            {
                OwningTabGroup.SelectTab(this, true);
            }

            ShowCIESimilarOptions();
        }