Ejemplo n.º 1
0
        /// <summary>
        /// Get the window or windows groups
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        public IWindow GetWindow(string path)
        {
            if (string.IsNullOrEmpty(path))
            {
                return(null);
            }

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

            if (pos < 0 || pos >= path.Length - 1)
            {
                return(GetSpecificWindow(path)); // get the window
            }

            string      windowGroupName = path.Substring(0, pos);
            string      leftPath        = path.Substring(pos + 1);
            WindowGroup WindowGroup     = (WindowGroup)GetSpecificWindow(windowGroupName); // get the window group

            if (WindowGroup == null)
            {
                return(null);
            }

            return(WindowGroup.GetWindow(leftPath));
        }
Ejemplo n.º 2
0
 public IWindow GetDebuggerWindow(string path)
 {
     return(m_debuggerWindowRoot.GetWindow(path));
 }