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

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

                if (pos < 0 || pos >= path.Length - 1)
                {
                    IDebuggerWindow debuggerWindow = InternalGetDebuggerWindow(path);
                    bool            result         = m_DebuggerWindows.Remove(new KeyValuePair <string, IDebuggerWindow>(path, debuggerWindow));
                    debuggerWindow.Shutdown();
                    RefreshDebuggerWindowNames();
                    return(result);
                }

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

                if (debuggerWindowGroup == null)
                {
                    return(false);
                }

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