コード例 #1
0
        private void AfterClientSaved(AfterClientSavedEventArgs obj)
        {
            var lookupItem = Clients.SingleOrDefault(i => i.Id == obj.Id);

            if (lookupItem == null)
            {
                Clients.Add(new NavigationItemViewModel(obj.Id, obj.DisplayMember, _eventAggregator));
            }
            else
            {
                lookupItem.DisplayMember = obj.DisplayMember;
            }
        }
コード例 #2
0
        private void AfterClientSaved(AfterClientSavedEventArgs obj)
        {
            var lookupItem = Clients.Single(l => l.Id == obj.Id);

            lookupItem.DisplayMember = obj.DisplayMember;
        }