public TypesDetailsViewModel(ClothingType t, ITypesService typesService, IEventAggregator eventAggregator)
 {
     Type                 = t;
     oldName              = t.Name;
     this.typesService    = typesService;
     this.eventAggregator = eventAggregator;
 }
 public ClothesEditViewModelFactory(IEventAggregator eventAggregator, IRegionManager regionManager, IClothesServices clothesService, ITypesService typesService)
 {
     this.eventAggregator = eventAggregator;
     this.regionManager   = regionManager;
     this.clothesService  = clothesService;
     this.typesService    = typesService;
 }
Example #3
0
 public AddTypeModel(IRecipe_TypeService db, IRecipeService dbR, ITypesService dbT, IUserService dbU)
 {
     _service       = db;
     _recipeService = dbR;
     _typesService  = dbT;
     _userService   = dbU;
 }
Example #4
0
        public TypeFilteringConditionsService(ITypesService ts)
        {
            typesService = ts;
            Conditions   = new List <FilteringConditions>();
            Conditions.Add(GetAllItemsConditions());

            typesService.TypesListUpdated += TypesService_TypesListUpdated;
        }
 public SettingsViewModel(IRegionManager regionManager, ITypesService typesService, IEventAggregator eventAggregator)
 {
     this.regionManager = regionManager;
     this.typesService  = typesService;
     TypesViewModels    = RefreshTypesViewModels();
     this.typesService.TypesListUpdated += TypesService_TypesListUpdated;
     this.eventAggregator = eventAggregator;
     Version = "Wersja: " + Application.ResourceAssembly.GetName().Version.ToString();
 }
Example #6
0
 public ClothesEditViewModel(IEventAggregator eventAggregator, IRegionManager regionManager, IClothesServices clothesService, ITypesService typesService, PieceOfClothing pieceOfClothing)
 {
     this.eventAggregator = eventAggregator;
     this.regionManager   = regionManager;
     this.clothesService  = clothesService;
     this.typesService    = typesService;
     CurrentItem          = pieceOfClothing;
     Initialize();
 }
Example #7
0
 public TypesCacheService(
     IMemoryCache memoryCache,
     ILogger <TypesCacheService> logger,
     ITypesService typesService)
 {
     _memoryCache  = memoryCache;
     _logger       = logger;
     _typesService = typesService;
     _typeName     = GetType().Name;
 }
Example #8
0
 public ClothesCreateViewModel(IEventAggregator eventAggregator, IRegionManager regionManager, IClothesServices clothesService, ITypesService typesService)
 {
     this.eventAggregator = eventAggregator;
     this.regionManager   = regionManager;
     this.clothesService  = clothesService;
     this.typesService    = typesService;
     //typesList = typesService.TypesList;
     TypesService_TypesListUpdated(this, null);
     typesService.TypesListUpdated += TypesService_TypesListUpdated;//unsubscribe on exit!!!!
     Initialize();
 }
Example #9
0
 public ClassWrapper(IUsersService usersService, IProjectsService projectsService, ITasksService tasksService, IRolesService rolesService, 
     ICategoriesService categoriesService, IStatusesService statusesService, IPrioritiesService prioritiesService, ITypesService typesService,
     ISlotsService slotsService)
 {
     _usersService = usersService;
     _projectsService = projectsService;
     _tasksService = tasksService;
     _rolesService = rolesService;
     _categoriesService = categoriesService;
     _statusesService = statusesService;
     _prioritiesService = prioritiesService;
     _typesService = typesService;
     _slotsService = slotsService;
 }
Example #10
0
 public ClassWrapper()
 {
     _usersService = new UsersService();
     _projectsService = new ProjectsService();
     _tasksService = new TasksService();
     _membershipsService = new MembershipsService();
     _userMembershipsService = new UserMembershipsService();
     _rolesService = new RolesService();
     _usersRolesService = new UsersRolesService();
     _categoriesService = new CategoriesService();
     _statusesService = new StatusesService();
     _prioritiesService = new PrioritiesService();
     _typesService = new TypesService();
     _slotsService = new SlotsService();
 }
Example #11
0
 public WcfService(
     IUsersService usersService,
     IRolesService rolesService,
     ICategoriesService categoriesService,
     IPrioritiesService prioritiesService,
     ITypesService typesService,
     IUsersRolesService usersRolesService,
     IStatusesService statusesService)
 {
     _usersService = usersService;
     _rolesService = rolesService;
     _categoriesService = categoriesService;
     _prioritiesService = prioritiesService;
     _typesService = typesService;
     _usersRolesService = usersRolesService;
     _statusesService = statusesService;
 }
        public AddAccountViewModel(ICompaniesService companiesService, ITypesService typesService, IAccountsMainService accountsService, IRegionManager regionManager)
        {           
            _regionManager = regionManager;
            _companiesService = companiesService;
            _typesService = typesService;
            _accountsService = accountsService;

            ConfirmationRequest = new InteractionRequest<IConfirmation>();
            AdditionalInfoConfirmationRequest = new InteractionRequest<IConfirmation>();
            _worker = new BackgroundWorker();
            _worker.DoWork += DoWork;
            LoadAllCommand = new DelegateCommand(() =>
            {
                if (!_worker.IsBusy)
                    _worker.RunWorkerAsync();
            });
            SaveAccountCommand = new DelegateCommand(SaveCommand, CanSave).ObservesProperty(() => Account);

            //Account = new AccountsMainSet();
            //Account.AccountYear = DateTime.Now.Year;
            //Account.AccountDate = DateTime.Now;

        }
        public AddAccountViewModel(ICompaniesService companiesService, ITypesService typesService, IAccountsMainService accountsService, IRegionManager regionManager)
        {
            _regionManager    = regionManager;
            _companiesService = companiesService;
            _typesService     = typesService;
            _accountsService  = accountsService;

            ConfirmationRequest = new InteractionRequest <IConfirmation>();
            AdditionalInfoConfirmationRequest = new InteractionRequest <IConfirmation>();
            _worker         = new BackgroundWorker();
            _worker.DoWork += DoWork;
            LoadAllCommand  = new DelegateCommand(() =>
            {
                if (!_worker.IsBusy)
                {
                    _worker.RunWorkerAsync();
                }
            });
            SaveAccountCommand = new DelegateCommand(SaveCommand, CanSave).ObservesProperty(() => Account);

            //Account = new AccountsMainSet();
            //Account.AccountYear = DateTime.Now.Year;
            //Account.AccountDate = DateTime.Now;
        }
Example #14
0
 public TypesController(ITypesService <Types> repository)
 {
     _repository = repository;
 }
Example #15
0
 public TypeEffectivenessViewModel(ITypesService typeService)
 {
     _typeService = typeService;
 }
 public TypesController(IProductsService productsService,
                        ITypesService typesService)
 {
     _productsService = productsService;
     _typesService    = typesService;
 }
Example #17
0
 public TypesService(ITypesService <GTypes> GlobalRepository)
 {
     _globalrepository = GlobalRepository;
 }
 public ValuesController(ITypesService typesService)
 {
     _typesService = typesService;
 }
Example #19
0
        public AddFullAccountViewModel(ICompaniesService companiesService,
                                       ITypesService typesService,
                                       IAccountsMainService accountsService,
                                       IAccountStatusService accountStatusService,
                                       IAccountStoresService accountStoresService,
                                       IStoresService storesService,
                                       IAccountCapexesService accountCapexService,
                                       IExpensesService expenseService,
                                       ICapexesService capexService,
                                       IStoresWorkService storesWorkService,
                                       IAccountFAService accountFAService,
                                       IFAService faService)
        {
            #region account
            SaveAccountCommand = new DelegateCommand(SaveAccount, CanSave).ObservesProperty(() => Account);
            #endregion account

            #region workers

            _worker         = new BackgroundWorker();
            _worker.DoWork += LoadAccount;

            _addStoresWorker                     = new BackgroundWorker();
            _addStoresWorker.DoWork             += LoadAddStoresToAccount;
            _addStoresWorker.RunWorkerCompleted += LoadAddStoresToAccount_Completed;
            #endregion workers

            #region  capexes
            OpenAddCapexToAccountCommand  = new DelegateCommand(OpenAddCapexToAccount);
            CloseAddCapexToAccountCommand = new DelegateCommand(CloseAddCapexToAccount);
            CopyAvailableSumCommand       = new DelegateCommand(CopyAvailableSum);
            AddCapexToAccountCommand      = new DelegateCommand(AddCapexToAccount, CanAddCapex).ObservesProperty(() => NewCapexForAccount);
            DeleteCapexAccountCommand     = new DelegateCommand(DeleteCapex);
            #endregion capexes

            #region services
            _companiesService     = companiesService;
            _typesService         = typesService;
            _accountsService      = accountsService;
            _accountStatusService = accountStatusService;
            _accountStoresService = accountStoresService;
            _storesService        = storesService;
            _accountCapexService  = accountCapexService;
            _expenseService       = expenseService;
            _capexService         = capexService;
            _storesWorkService    = storesWorkService;
            _accountFAService     = accountFAService;
            _faService            = faService;
            #endregion services

            #region statuses
            IsChangeStatusOpen = false;
            StatusesList       = Statuses.GetStatusesList();

            CancelNewStatusCommand = new DelegateCommand(CancelNew);
            ChangeStatusCommand    = new DelegateCommand(ChangeStatus);
            SaveNewStatusCommand   = new DelegateCommand(SaveNew, CanSaveNew);
            #endregion statuses

            #region stores
            EditAccountStoresListCommand   = new DelegateCommand(EditAccountStoresList, CanEdit);
            DeleteAccountStoreCommand      = new DelegateCommand(DeleteAccountStore);
            AddStoresToAccountCommand      = new DelegateCommand(() => _addStoresWorker.RunWorkerAsync(), CheckStoreErrors).ObservesProperty(() => StoresForLoad);
            CloseAddStoresToAccountCommand = new DelegateCommand(CloseAddStores);
            IsEditAccountStoresOpen        = false;
            #endregion stores

            #region FA
            AddFAOpen             = false;
            AddFACommand          = new DelegateCommand(AddFA);
            AddFAToAccountCommand = new DelegateCommand(AddFAToAccount, CanAddFA).ObservesProperty(() => NewFA);
            CloseFACommand        = new DelegateCommand(CloseFA);
            #endregion FA
        }
        public AddFullAccountViewModel(ICompaniesService companiesService, 
                                       ITypesService typesService, 
                                       IAccountsMainService accountsService, 
                                       IAccountStatusService accountStatusService, 
                                       IAccountStoresService accountStoresService, 
                                       IStoresService storesService, 
                                       IAccountCapexesService accountCapexService, 
                                       IExpensesService expenseService, 
                                       ICapexesService capexService, 
                                       IStoresWorkService storesWorkService,
                                       IAccountFAService accountFAService,
                                       IFAService faService)
        {


            #region account
            SaveAccountCommand = new DelegateCommand(SaveAccount, CanSave).ObservesProperty(() => Account);
            #endregion account

            #region workers

            _worker = new BackgroundWorker();
            _worker.DoWork += LoadAccount;

            _addStoresWorker = new BackgroundWorker();
            _addStoresWorker.DoWork += LoadAddStoresToAccount;
            _addStoresWorker.RunWorkerCompleted += LoadAddStoresToAccount_Completed;
            #endregion workers 

            #region  capexes
            OpenAddCapexToAccountCommand = new DelegateCommand(OpenAddCapexToAccount);
            CloseAddCapexToAccountCommand = new DelegateCommand(CloseAddCapexToAccount);
            CopyAvailableSumCommand = new DelegateCommand(CopyAvailableSum);
            AddCapexToAccountCommand = new DelegateCommand(AddCapexToAccount, CanAddCapex).ObservesProperty(() => NewCapexForAccount);
            DeleteCapexAccountCommand = new DelegateCommand(DeleteCapex);
            #endregion capexes

            #region services
            _companiesService = companiesService;
            _typesService = typesService;
            _accountsService = accountsService;
            _accountStatusService = accountStatusService;
            _accountStoresService = accountStoresService;
            _storesService = storesService;
            _accountCapexService = accountCapexService;
            _expenseService = expenseService;
            _capexService = capexService;
            _storesWorkService = storesWorkService;
            _accountFAService = accountFAService;
            _faService = faService;
            #endregion services

            #region statuses
            IsChangeStatusOpen = false;
            StatusesList = Statuses.GetStatusesList();

            CancelNewStatusCommand = new DelegateCommand(CancelNew);
            ChangeStatusCommand = new DelegateCommand(ChangeStatus);
            SaveNewStatusCommand = new DelegateCommand(SaveNew, CanSaveNew);
            #endregion statuses

            #region stores
            EditAccountStoresListCommand = new DelegateCommand(EditAccountStoresList, CanEdit);
            DeleteAccountStoreCommand = new DelegateCommand(DeleteAccountStore);
            AddStoresToAccountCommand = new DelegateCommand(() => _addStoresWorker.RunWorkerAsync(), CheckStoreErrors).ObservesProperty(() => StoresForLoad);
            CloseAddStoresToAccountCommand = new DelegateCommand(CloseAddStores);
            IsEditAccountStoresOpen = false;
            #endregion stores

            #region FA
            AddFAOpen = false;
            AddFACommand = new DelegateCommand(AddFA);
            AddFAToAccountCommand = new DelegateCommand(AddFAToAccount, CanAddFA).ObservesProperty(() => NewFA);
            CloseFACommand = new DelegateCommand(CloseFA);
            #endregion FA

        }        
Example #21
0
 public IndexModel(IRecipeService db, ITypesService dbT, IUserService dbU)
 {
     _service      = db;
     _typesService = dbT;
     _userService  = dbU;
 }
Example #22
0
 public TypesController(ILogger <ProductsController> logger, ITypesService TypesService)
 {
     _logger       = logger;
     _TypesService = TypesService;
 }
 public TypeController(ITypesService typesService)
 {
     _typesService = typesService;
 }
Example #24
0
 public TypesService(ITypesService <Global.Types> GlobalTypes)
 {
     _globalTypes = GlobalTypes;
 }
Example #25
0
 public NovelsController(INovelsService <Novels> NovelsService, ISeriesService <Series> SeriessService, ITypesService <Types> TypesService)
 {
     _novelsService  = NovelsService;
     _seriessService = SeriessService;
     _typesService   = TypesService;
 }
 public TypesApiController(ITypesService typesService)
 {
     this._typesService = typesService;
 }