Exemplo n.º 1
0
        public ItemLoaded(
            LoaderParams <TService> loaderParams,
            INotifyPropertyChanged instance,
            MemberInfo member)
        {
            this.loaderParams = loaderParams;

            if (member == null)
            {
                return;
            }

            setValue = value => member.SetValue(instance, value);
        }
Exemplo n.º 2
0
        public ItemFilled(
            LoaderParams <TService> loaderParams,
            Func <TService, T> func,
            Action <TProperty> setProperty)
        {
            this.loaderParams = loaderParams;
            this.func         = func;
            this.setProperty  = setProperty;

            if (setProperty == null)
            {
                return;
            }

            LoadData();
        }
Exemplo n.º 3
0
        internal CollectionFilled(
            LoaderParams <TService> loaderParams,
            Func <TService, IEnumerable <T> > func,
            IObservableCollection <TCollectionType> collection,
            IComparer comparer)
        {
            this.loaderParams = loaderParams;
            this.collection   = collection;
            this.comparer     = comparer;

            Action action = () => LoadCollection(func);

            if (!loaderParams.UseTaskFactory)
            {
                action();
                return;
            }

            task = Task.Factory.StartNew(action);
        }
Exemplo n.º 4
0
 public CollectionFilled(LoaderParams <TService> loaderParams, Func <TService, IEnumerable <TCollectionType> > func)
 {
     this.loaderParams = loaderParams;
     this.func         = func;
 }
Exemplo n.º 5
0
 public ValueAction(LoaderParams <TService> loaderParams, TStart value)
 {
     this.loaderParams = loaderParams;
     this.value        = value;
 }
Exemplo n.º 6
0
 public CollectionLoaded(LoaderParams <TService> loaderParams, IObservableCollection <TCollectionType> collection)
 {
     this.loaderParams = loaderParams;
     this.collection   = collection;
 }
Exemplo n.º 7
0
 public CollectionLoaded(LoaderParams <TService> loaderParams)
     : this(loaderParams, null)
 {
 }