예제 #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();
        }