Beispiel #1
0
        private static IList GetObjects(IObjectSpace objectSpace, Type dashBoardObjectType)
        {
            var proxyCollection = new ProxyCollection(objectSpace, XafTypesInfo.CastTypeToTypeInfo(dashBoardObjectType), objectSpace.GetObjects(dashBoardObjectType));

            proxyCollection.DisplayableMembers = string.Join(";", proxyCollection.DisplayableMembers.Split(';').Where(s => !s.EndsWith("!")));
            return(proxyCollection);
        }
Beispiel #2
0
 public ExtendedDictionary()
 {
     _valueComparer = EqualityComparer <TValue> .Default;
     _wrapped       = new Dictionary <TKey, TValue>();
     Keys           = new ProxyCollection <TKey>(() => _wrapped.Keys).AsIReadOnlyCollection;
     Values         = new ProxyCollection <TValue>(() => _wrapped.Values).AsIReadOnlyCollection;
 }
Beispiel #3
0
        private void simpleAction1_Execute(object sender, SimpleActionExecuteEventArgs e)
        {
            ProxyCollection v = (View as ListView).CollectionSource.Collection as ProxyCollection;

            foreach (OrderOperation o in v)
            {
                int number = o.MaterialOrders.Select(om => om.Number).Max();
            }
        }
Beispiel #4
0
 public ExtendedDictionary(IEnumerable <KeyValuePair <TKey, TValue> > prototype)
 {
     _valueComparer = EqualityComparer <TValue> .Default;
     _wrapped       = new Dictionary <TKey, TValue>();
     Keys           = new ProxyCollection <TKey>(() => _wrapped.Keys).AsIReadOnlyCollection;
     Values         = new ProxyCollection <TValue>(() => _wrapped.Values).AsIReadOnlyCollection;
     if (prototype == null)
     {
         throw new ArgumentNullException(nameof(prototype));
     }
     this.AddRange(prototype);
 }
Beispiel #5
0
 private static IList GetObjects(IObjectSpace objectSpace, Type dashBoardObjectType)
 {
     var proxyCollection = new ProxyCollection(objectSpace, XafTypesInfo.CastTypeToTypeInfo(dashBoardObjectType), objectSpace.GetObjects(dashBoardObjectType));
     proxyCollection.DisplayableMembers = string.Join(";", proxyCollection.DisplayableMembers.Split(';').Where(s => !s.EndsWith("!")));
     return proxyCollection;
 }
 protected override void AssignDataSourceToControl(object dataSource)
 {
     _proxyCollection = dataSource as ProxyCollection;
     UpdateDataSource();
 }