コード例 #1
0
 public Window6()
 {
     InitializeComponent();
     Connections = new ObservableCollection <Connection>();
     adder       = new RandomConnectionAdder(x => Dispatcher.BeginInvoke((Action)(() => AddConnection(x))));
     DataContext = Connections;
 }
コード例 #2
0
        public ComputerList()
        {
            InitializeComponent();

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