public static RdsExplorerPanel CreatFromXmlDictionaryString(string _xml)
        {
            XmlDictionary XmlList = Jrfc.Utility.ObjectSerializer <XmlDictionary> .FromXml(_xml);

            Jrfc.RdsExplorerPanel rep = new RdsExplorerPanel();
            string ServerList_Xml     = XmlList["ServerList"];

            if (ServerList_Xml != null)
            {
                RdsServerList rds_servers = (RdsServerList)Jrfc.Utility.ObjectSerializer <RdsServerList> .FromXml(ServerList_Xml);

                rep.ServerList.Copy(rds_servers);
            }
            string AppList_Xml = XmlList["AppList"];

            if (AppList_Xml != null)
            {
                RdsAppList apps = (RdsAppList)Jrfc.Utility.ObjectSerializer <RdsAppList> .FromXml(AppList_Xml);

                rep.m_RdsAppList.Copy(apps);
            }
            string ExpandedServerList_Xml = XmlList["ExpandedServerList"];

            if (ExpandedServerList_Xml != null)
            {
                ExpandedServerList exp_servers = (ExpandedServerList)Jrfc.Utility.ObjectSerializer <ExpandedServerList> .FromXml(ExpandedServerList_Xml);

                rep.m_ExandedServerList.Copy(exp_servers);
            }
            return(rep);
        }
 public ExpandedServerList Copy(ExpandedServerList _NewList)
 {
     this.Clear();
     foreach (string s in _NewList)
     {
         this.Add(s);
     }
     return(this);
 }
        public RdsExplorerPanel()
        {
            InitializeComponent();
            this.DataContext         = this;
            this.m_RdsServerList     = new RdsServerList(false);
            this.m_RdsAppList        = new RdsAppList();
            this.m_ExandedServerList = new ExpandedServerList();
            this.uc_RdsExplorerPanel_ListView.ItemsSource = this.m_RdsAppList;

            CollectionView           view_ex             = (CollectionView)CollectionViewSource.GetDefaultView(this.uc_RdsExplorerPanel_ListView.ItemsSource);
            PropertyGroupDescription groupDescription_ex = new PropertyGroupDescription("Hostname");

            view_ex.GroupDescriptions.Add(groupDescription_ex);
            view_ex.SortDescriptions.Add(new SortDescription("Hostname", ListSortDirection.Ascending));
            view_ex.SortDescriptions.Add(new SortDescription("DisplayName", ListSortDirection.Ascending));
        }