public string ToXmlDictionaryString()
        {
            string ServerList_Xml         = this.m_RdsServerList.ToXmlString();
            string AppList_Xml            = this.m_RdsAppList.ToXmlString();
            string ExpandedServerList_Xml = this.m_ExandedServerList.ToXmlString();

            XmlDictionary XmlList = new XmlDictionary();

            XmlList.Add("ServerList", ServerList_Xml);
            XmlList.Add("AppList", AppList_Xml);
            XmlList.Add("ExpandedServerList", ExpandedServerList_Xml);
            return(XmlList.ToXmlString());
        }
        public string ToXmlDictionaryString()
        {
            XmlDictionary XmlList = new XmlDictionary();

            foreach (TabItem ti in this.uc_MainTabControl.Items)
            {
                if (ti.Header.ToString() != "+")
                {
                    Jrfc.RdsExplorerPanel p = this.GetRdsExplorerPanel(ti);
                    if (p != null)
                    {
                        XmlList.Add(ti.Header.ToString(), p.ToXmlDictionaryString());
                    }
                }
            }
            return(XmlList.ToXmlString());
        }
        public static RdsExplorerContainer CreatFromXmlDictionaryString(string _xml)
        {
            XmlDictionary XmlList = Jrfc.Utility.ObjectSerializer <XmlDictionary> .FromXml(_xml);

            Jrfc.RdsExplorerContainer rec = new RdsExplorerContainer();
            foreach (XmlKeyValuePair kvp in XmlList)
            {
                Jrfc.RdsExplorerPanel rep = Jrfc.RdsExplorerPanel.CreatFromXmlDictionaryString(kvp.XmlString);
                TabItem plus_tab          = Jrfc.Utility.FindTabByHeader(rec.uc_MainTabControl, "+");
                TabItem ti      = null;
                bool    new_tab = false;
                if (kvp.Key == "All Apps")
                {
                    ti = Jrfc.Utility.FindTabByHeader(rec.uc_MainTabControl, "All Apps");
                }
                if (ti == null)
                {   // if the "All Apps" TabItem was not found
                    ti        = new TabItem();
                    new_tab   = true;
                    ti.Header = kvp.Key;
                }
                ti.Content = rep;
                if (new_tab)
                {
                    if (plus_tab != null)
                    {
                        rec.uc_MainTabControl.Items.Insert(rec.uc_MainTabControl.Items.Count, ti);
                    }
                    else
                    {
                        rec.uc_MainTabControl.Items.Add(ti);
                    }
                }
            }
            return(rec);
        }