private void OnStreamRemoved(StreamChangedArgs args) { foreach (StreamData stream in args.Streams) { App.Current.Dispatcher.Invoke((Action) delegate { this.Streams.Remove(new StreamDataViewModel(stream)); }); } }
private void OnStreamRemoved(StreamChangedArgs args) { foreach (StreamData stream in args.Streams) { App.Current.Dispatcher.Invoke((Action)delegate { this.Streams.Remove(new StreamDataViewModel(stream)); }); } }