コード例 #1
0
 private void OnStreamRemoved(StreamChangedArgs args)
 {
     foreach (StreamData stream in args.Streams)
     {
         App.Current.Dispatcher.Invoke((Action) delegate
         {
             this.Streams.Remove(new StreamDataViewModel(stream));
         });
     }
 }
コード例 #2
0
 private void OnStreamRemoved(StreamChangedArgs args)
 {
     foreach (StreamData stream in args.Streams)
     {
         App.Current.Dispatcher.Invoke((Action)delegate
         {
             this.Streams.Remove(new StreamDataViewModel(stream));
         });
     }
 }