예제 #1
0
 public IManageCViews this[PropIdType propId]
 {
     get
     {
         IManageCViews result = _dict[propId];
         return(result);
     }
 }
예제 #2
0
 public bool TryGetValue(PropIdType propId, out IManageCViews cViewManager)
 {
     if (_dict.TryGetValue(propId, out cViewManager))
     {
         return(true);
     }
     else
     {
         cViewManager = null;
         return(false);
     }
 }
예제 #3
0
 private bool TryGetViewManager(string propertyName, out IManageCViews cViewManager)
 {
     if (TryGetCViewManagerProvider(propertyName, out IProvideACViewManager cViewManagerProvider))
     {
         cViewManager = cViewManagerProvider.CViewManager;
         return(true);
     }
     else
     {
         System.Diagnostics.Debug.WriteLine($"Could not get the view manager provider for {PROP_NAME}.");
         cViewManager = null;
         return(false);
     }
 }
예제 #4
0
        public IManageCViews GetOrAdd(PropIdType propId, Func <PropIdType, IManageCViews> vFactory)
        {
            IManageCViews result = _dict.GetOrAdd(propId, vFactory);

            return(result);
        }