public void Add(RdsServerList _RdsServerList) { this.RdsServerIds.Clear(); foreach (RdsServer s in _RdsServerList) { this.RdsServerIds.Add(s.Hostname); } this.RefreshList(); }
public RdsServerList Copy(RdsServerList _NewList) { this.Clear(); foreach (RdsServer s in _NewList) { this.Add(s); } return(this); }
public RdsAppList(RdsServerList _RdsServerList) { this.RdsServerIds = new RdsServerIdList(); foreach (RdsServer s in _RdsServerList) { this.RdsServerIds.Add(s.Hostname); } this.RefreshList(); }
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)); }