Пример #1
0
        /// <summary>
        /// Select the window or window groups
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        public bool SelectWindow(string path)
        {
            if (string.IsNullOrEmpty(path))
            {
                return(false);
            }

            int pos = path.IndexOf('/');

            if (pos < 0 || pos >= path.Length - 1)
            {
                return(SelectSpecificWindow(path));
            }

            string      windowGroupName = path.Substring(0, pos);
            string      leftPath        = path.Substring(pos + 1);
            WindowGroup windowGroup     = (WindowGroup)GetSpecificWindow(windowGroupName);

            if (windowGroup == null || !SelectSpecificWindow(windowGroupName))
            {
                return(false);
            }

            return(windowGroup.SelectWindow(leftPath));
        }
Пример #2
0
 public bool SelectDebuggerWindow(string path)
 {
     return(m_debuggerWindowRoot.SelectWindow(path));
 }