Mono.Debugger.DebuggerSession.LoadDisplays C# (CSharp) Method

LoadDisplays() protected method

protected LoadDisplays ( XPathNodeIterator display_iter ) : void
display_iter System.Xml.XPath.XPathNodeIterator
return void
        protected void LoadDisplays(XPathNodeIterator display_iter)
        {
            while (display_iter.MoveNext ()) {
                if (display_iter.Current.Name != "Display")
                    throw new InternalError ();

                int index = Int32.Parse (display_iter.Current.GetAttribute ("index", ""));
                string text = display_iter.Current.GetAttribute ("text", "");
                bool enabled = Boolean.Parse (display_iter.Current.GetAttribute ("enabled", ""));

                Display d = new Display (this, index, enabled, text);
                displays.Add (d.Index, d);
            }
        }