示例#1
0
 public void ReadConfig(Configuration config)
 {
     SubscribeCollection.Clear();
     foreach (var serverSubscribe in config.serverSubscribes)
     {
         SubscribeCollection.Add(serverSubscribe);
     }
     SelectedServer = SubscribeCollection.Count > 0 ? SubscribeCollection[0] : null;
     SubscribeCollection.CollectionChanged -= SubscribeCollection_CollectionChanged;
     SubscribeCollection.CollectionChanged += SubscribeCollection_CollectionChanged;
 }