コード例 #1
0
            /// <summary>
            /// 选中调试器窗口。
            /// </summary>
            /// <param name="path">调试器窗口路径。</param>
            /// <returns>是否成功选中调试器窗口。</returns>
            public bool SelectDebuggerWindow(string path)
            {
                if (string.IsNullOrEmpty(path))
                {
                    return(false);
                }

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

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

                string debuggerWindowGroupName = path.Substring(0, pos);
                string leftPath = path.Substring(pos + 1);
                DebuggerWindowGroup debuggerWindowGroup = (DebuggerWindowGroup)InternalGetDebuggerWindow(debuggerWindowGroupName);

                if (debuggerWindowGroup == null || !InternalSelectDebuggerWindow(debuggerWindowGroupName))
                {
                    return(false);
                }

                return(debuggerWindowGroup.SelectDebuggerWindow(leftPath));
            }
コード例 #2
0
 /// <summary>
 /// 选中调试窗口。
 /// </summary>
 /// <param name="path">调试窗口路径。</param>
 /// <returns>是否成功选中调试窗口。</returns>
 public bool SelectDebuggerWindow(string path)
 {
     return(m_DebuggerWindowRoot.SelectDebuggerWindow(path));
 }