public Window6() { InitializeComponent(); Connections = new ObservableCollection <Connection>(); adder = new RandomConnectionAdder(x => Dispatcher.BeginInvoke((Action)(() => AddConnection(x)))); DataContext = Connections; }
public ComputerList() { InitializeComponent(); Connections = new ObservableCollection<Connection>(); adder = new RandomConnectionAdder(x => Dispatcher.BeginInvoke((Action)(() => AddConnection(x)))); DataContext = Connections; }