Пример #1
0
 private void FocusCaptureManager(CaptureManagerLayout connectionManager, bool openManagerTab)
 {
     if (this.NeedsFocusCaptureManagerTab(openManagerTab))
     {
         connectionManager.BringToFront();
         connectionManager.Update();
         // the connection manager was resolved as control on the tab
         var tab = connectionManager.Parent as TerminalTabControlItem;
         this.Select(tab);
     }
 }
Пример #2
0
        /// <summary>
        /// Updates the CaptureManager tabcontrol, focuses it and updates its content.
        /// </summary>
        /// <param name="openManagerTab"></param>
        /// <returns>true, Tab exists and was updated, otherwise false.</returns>
        private bool RefreshCaptureManager(bool openManagerTab)
        {
            CaptureManagerLayout captureManager = this.FindCaptureManagerControl();

            if (captureManager != null)
            {
                captureManager.RefreshView();
                this.FocusCaptureManager(captureManager, openManagerTab);
                return(true);
            }

            return(false);
        }