Esempio n. 1
0
 // When updating, add server
 private void OnAddServer(Server server)
 {
     ServerChannelViewModel scvm = new ServerChannelViewModel(server);
     scvm.PropertyChanged += Scvm_PropertyChanged;
     this.Data.Add(scvm);
     scvm.IsSelected = true;
 }
 private void AddChannel(Channel channel)
 {
     ServerChannelViewModel scvm = new ServerChannelViewModel(this.Server, channel);
     scvm.PropertyChanged += Scvm_PropertyChanged;
     this.Children.Add(scvm);
     scvm.IsSelected = true;
 }