Exemplo n.º 1
0
 public ViewModelSorted(ServiceFactory <ICustomerService> customerServiceFactory)
 {
     customerServiceFactory
     .Collection(this, x => CustomerCollection)
     .Sort(x => x.LastName)
     .Fill(x => x.GetCustomersWithTurnoverGreatherThan(0));
 }
Exemplo n.º 2
0
            public MainViewModel(ServiceFactory <IFooService> testServiceFactory)
            {
                Property(() => CurrentFooItem).OnChanged(x => Loaded = true);

                testServiceFactory
                .Collection(this, x => x.FooList)
                .Fill(x => x.GetAll())
                .Completed(x => CurrentFooItem = x.First());
            }
			public MainViewModel(ServiceFactory<IFooService> testServiceFactory)
			{
				Property(() => CurrentFooItem).OnChanged(x => Loaded = true);

				testServiceFactory
					.Collection(this, x => x.FooList)
					.Fill(x => x.GetAll())
					.Completed(x => CurrentFooItem = x.First());
			}
Exemplo n.º 4
0
            public PreAssignedCollectionViewModel(
                IObservableCollection <CustomerViewModel> collection,
                ServiceFactory <ICustomerService> customerServiceFactory)
            {
                CustomerCollection = collection;

                customerServiceFactory
                .Collection(this, x => x.CustomerCollection)
                .Fill(x => x.GetCustomersWithTurnoverGreatherThan(0));
            }
			public PreAssignedCollectionViewModel(
				IObservableCollection<CustomerViewModel> collection,
				ServiceFactory<ICustomerService> customerServiceFactory)
			{
				CustomerCollection = collection;

				customerServiceFactory
					.Collection(this, x => x.CustomerCollection)
					.Fill(x => x.GetCustomersWithTurnoverGreatherThan(0));
			}
 public FilledViewModel(ServiceFactory <ICustomerService> customerServiceFactory)
 {
     customerServiceFactory
     .Collection(this, x => x.customerCollection)
     .Fill(x => x.GetCustomersWithTurnoverGreatherThan(0));
 }
			public FilledViewModel(ServiceFactory<ICustomerService> customerServiceFactory)
			{
				customerServiceFactory
					.Collection(this, x => x.customerCollection)
					.Fill(x => x.GetCustomersWithTurnoverGreatherThan(0));
			}
			public ViewModelSorted(ServiceFactory<ICustomerService> customerServiceFactory)
			{
				customerServiceFactory
					.Collection(this, x => CustomerCollection)
					.Sort(x => x.LastName)
					.Fill(x => x.GetCustomersWithTurnoverGreatherThan(0));
			}