Esempio n. 1
0
        private void AddUserServiceSelection(V1Service service)
        {
            var serviceSelection = new NetworkServicePresenter <V1Service>(service.Name, service.Protocol.Convert(), service.Port, service.IsEnabled, service);

            serviceSelection.IsEnabledChanged += OnUserServiceSelectionIsEnabledChanged;
            try
            {
                // TODO: Need to use CollectionView instead of relying on ordered insert.
                m_userNetworkServices.Add(serviceSelection);
            }
            catch (ArgumentException)
            {
                // TODO: Duplicate item. CollectionView will eliminate requirement for this.
            }
        }
 private void AddUserServiceSelection(V1Service service)
 {
     var serviceSelection = new NetworkServicePresenter<V1Service>(service.Name, service.Protocol.Convert(), service.Port, service.IsEnabled, service);
     serviceSelection.IsEnabledChanged += OnUserServiceSelectionIsEnabledChanged;
     try
     {
         // TODO: Need to use CollectionView instead of relying on ordered insert.
         m_userNetworkServices.Add(serviceSelection);
     }
     catch (ArgumentException)
     {
         // TODO: Duplicate item. CollectionView will eliminate requirement for this.
     }
 }