Beispiel #1
0
        private MasterDataSource()
        {
            var networkConfiguration   = new NetworkWrapper();
            var uiDispatcher           = new UiDispatcher();
            var peopleNetworkMessenger = new PeopleNetworkMessenger(networkConfiguration, uiDispatcher);

            PeopleDataSource = new PeopleDataSource(peopleNetworkMessenger);
        }
Beispiel #2
0
        public PeopleDataSource(PeopleNetworkMessenger peopleNetworkMessenger)
        {
            _peopleNetworkMessenger = peopleNetworkMessenger;
            _writeablePeople        = new List <NetworkedPerson>();
            _people = new ObservableCollection <IPerson>();
            Data    = new DataCollection <IPerson>(_people);

            _peopleNetworkMessenger.DataReceived += UpdateData;
        }
Beispiel #3
0
 public NetworkedPerson(PeopleNetworkMessenger networkMessenger)
 {
     _networkMessenger = networkMessenger;
 }