Ejemplo n.º 1
0
        public AngleMonitoringController(AngleMonitoringViewModel monitoringViewModel, IShellService shellService, ISettingsService settingsService, IGeneralService generalService,
                                         IDataService dataService)
        {
            this.monitoringViewModel = monitoringViewModel;
            this.shellService        = shellService;
            this.settingsService     = settingsService;
            this.generalService      = generalService;

            attUpdating = false;

            buffersFull = false;

            rollMeasBuffer = new List <LogPoint>();
            rollRefBuffer  = new List <LogPoint>();

            pitchMeasBuffer = new List <LogPoint>();
            pitchRefBuffer  = new List <LogPoint>();

            yawMeasBuffer = new List <LogPoint>();
            yawRefBuffer  = new List <LogPoint>();

            isVisible = true;

            this.dataService             = dataService;
            dataService.DataUpdateEvent += DataUpdateEventHandler;
        }
 public DocumentoExpedienteController(
     IUserResolverService userResolverService,
     IMapper mapper,
     IGeneralService <Expediente> service)
     : base(userResolverService, mapper, service)
 {
 }
 public DetailProcesoService(IProcesoRepositorio procesoRepositorio,
                             IRzProcuraduriaRepositorio rzProcuraduriaRepositorio,
                             IEmbxprocesoRepositorio embxprocesoRepositorio,
                             IPlantaxprocesoRepositorio plantaxprocesoRepositorio,
                             IResolimpugnadaxprocesoRepositorio resolimpugnadaxprocesoRepositorio,
                             IDatProcesoInstanciaRepositorio procesoInstanciaRepositorio,
                             IDatProcesoPlazoRepositorio procesoPlazoRepositorio,
                             IDatProcesoInstanciaDocumentoRepositorio procesoInstanciaDocumentoRepositorio,
                             IGeneralService generalService,
                             IEnumerableService enumerableService,
                             ISitradocService sitradocService,
                             IEtapasRepositorio etapasRepositorio,
                             ISedeRepositorio sedeRepositorio,
                             IDistritojudicialRepositorio distritojudicialRepositorio,
                             IUnitOfWork unitOfWork)
 {
     this.procesoRepositorio                = procesoRepositorio;
     this.rzProcuraduriaRepositorio         = rzProcuraduriaRepositorio;
     this.embxprocesoRepositorio            = embxprocesoRepositorio;
     this.plantaxprocesoRepositorio         = plantaxprocesoRepositorio;
     this.resolimpugnadaxprocesoRepositorio = resolimpugnadaxprocesoRepositorio;
     this.procesoInstanciaRepositorio       = procesoInstanciaRepositorio;
     this.generalService          = generalService;
     this.enumerableService       = enumerableService;
     this.sitradocService         = sitradocService;
     this.procesoPlazoRepositorio = procesoPlazoRepositorio;
     this.procesoInstanciaDocumentoRepositorio = procesoInstanciaDocumentoRepositorio;
     this.etapasRepositorio           = etapasRepositorio;
     this.sedeRepositorio             = sedeRepositorio;
     this.distritojudicialRepositorio = distritojudicialRepositorio;
     this.unitOfWork = unitOfWork;
 }
Ejemplo n.º 4
0
 public MuseumService(
     IGeneralService generalService,
     IUnitOfWork unitOfWork)
 {
     _generalService = generalService;
     _unitOfWork     = unitOfWork;
 }
Ejemplo n.º 5
0
 public AuthController(ITokenService tokenService, IUserService userService, IGeneralService generalService)
 {
     _tokenService   = tokenService;
     _userService    = userService;
     _generalService = generalService;
     _passwordHash   = new PasswordHasher();
 }
 public ApplicationController(ShellViewModel shellViewModel,
                              MainMonitoringController mainMonitoringController,
                              NetworkAccessThreadController networkAccessThreadController,
                              StatusBarController statusBarController,
                              AttitudeMonitoringController attitudeMonitoringController,
                              AltitudeMonitoringController altitudeMonitoringController,
                              NavigationMonitoringController navigationMonitoringController,
                              IDataFetchService dataFetchService,
                              IDataUpdateService dataUpdateService,
                              IGuiUpdateService guiUpdateService,
                              IGeneralService generalService,
                              ISettingsService settingsService,
                              IShellService shellService)
 {
     this.shellViewModel                 = shellViewModel;
     this.mainMonitoringController       = mainMonitoringController;
     this.networkAccessThreadController  = networkAccessThreadController;
     this.attitudeMonitoringController   = attitudeMonitoringController;
     this.altitudeMonitoringController   = altitudeMonitoringController;
     this.navigationMonitoringController = navigationMonitoringController;
     this.statusBarController            = statusBarController;
     this.dataFetchService               = dataFetchService;
     this.dataUpdateService              = dataUpdateService;
     this.generalService                 = generalService;
     this.settingsService                = settingsService;
     this.shellService                 = shellService;
     this.guiUpdateService             = guiUpdateService;
     dataUpdateService.ResetDataEvent += Reset;
     ChangeTabCommand = new DelegateCommand(ChangeTab_Command);
 }
Ejemplo n.º 7
0
 public ProductService(IProductRepository productRepository, IMapper mapper, IWebHostEnvironment env, IGeneralService generalService)
 {
     _productRepository = productRepository;
     _mapper            = mapper;
     _env            = env;
     _generalService = generalService;
 }
Ejemplo n.º 8
0
 public ApiController(IUserService service, IStoreService storeService, IRiderService riderService, IGeneralService generalService)
 {
     _userSrvice     = service;
     _storeService   = storeService;
     _riderService   = riderService;
     _generalService = generalService;
 }
Ejemplo n.º 9
0
 public CarpetasController(IUsuarioService usuarioService, IGeneralService<Carpeta> generalService, IGeneralService<Usuario> generalUserService, IGeneralService<Tarea> generalTareaService)
 {
     _usuarioService = usuarioService;
     _generalService = generalService;
     _generalUserService = generalUserService;
     _generalTareaService = generalTareaService;
 }
Ejemplo n.º 10
0
 public StatusBarViewModel(IStatusBarView view, IGeneralService generalService) : base(view)
 {
     this.generalService = generalService;
     ConnectedText       = "Disconnected";
     ConnectButtonText   = "Disconnect";
     FlightMode          = "UNKNOWN";
 }
Ejemplo n.º 11
0
 public DataService(ISettingsService settingsService,
                    IGeneralService generalService)
 {
     this.settingsService = settingsService;
     this.generalService  = generalService;
     dataLock             = new object();
     AllDataSets          = new List <DataSet>();
 }
Ejemplo n.º 12
0
 public HomeController(IDeviceService deviceService, ILogService logService, IPaymentsService paymentsService, IUserService userService, IGeneralService generalService, ISmsProtocolService smsProtocolService)
 {
     this.deviceService      = deviceService;
     this.logService         = logService;
     this.paymentsService    = paymentsService;
     this.userService        = userService;
     this.generalService     = generalService;
     this.smsProtocolService = smsProtocolService;
 }
Ejemplo n.º 13
0
 public StatusBarController(StatusBarViewModel statusBarViewModel, IGeneralService generalService, IShellService shellService, IConnectionService connectionService)
 {
     this.statusBarViewModel = statusBarViewModel;
     this.generalService     = generalService;
     this.shellService       = shellService;
     this.connectionService  = connectionService;
     connectionService.ConnectionChangedEvent += ConnectionUpdated;
     generalService.PropertyChanged           += GeneralServicePropertyChanged;
 }
Ejemplo n.º 14
0
 public UserManager(IUserRepository userRepository,
                    IGeneralService generalService,
                    IMapper mapper, ILogger <UserManager> logger)
 {
     _userRepository = userRepository;
     _generalService = generalService;
     _mapper         = mapper;
     _logger         = logger;
 }
Ejemplo n.º 15
0
 public MagazineService(
     IHostingEnvironment environment,
     IGeneralService generalService,
     IUnitOfWork unitOfWork)
 {
     _environment    = environment;
     _generalService = generalService;
     _unitOfWork     = unitOfWork;
 }
Ejemplo n.º 16
0
 public CompetenciaController(
     IUserResolverService userResolverService,
     IMapper mapper,
     IGeneralService <Entrevista> service,
     IAsyncRepository <Entrevista> entrevistaRepository)
     : base(userResolverService, mapper, service)
 {
     this.mapper = mapper;
     this.entrevistaRepository = entrevistaRepository;
 }
Ejemplo n.º 17
0
 public GuiUpdateService(ISettingsService settingsService,
                         IGeneralService generalService,
                         IDataFetchService dataFetchService,
                         IDataUpdateService dataUpdateService)
 {
     this.settingsService   = settingsService;
     this.generalService    = generalService;
     this.dataFetchService  = dataFetchService;
     this.dataUpdateService = dataUpdateService;
 }
Ejemplo n.º 18
0
        public AddTypeVM()
        {
            SelectedProduct = new Entity.Product();
            SelectedProduct.ProductType = new ProductType();

            surrogate = new Surrogate<Entity.Product>(new ProductServiceProxy());
            Products = surrogate.Deserialize(surrogate.GetAll());

            surrogateProductType = new Surrogate<ProductType>(new ProductTypeServiceProxy());
        }
 public HomeController(
     IGeneralService generalService,
     IUserService userService,
     ILogger <HomeController> loggerService,
     IHostingEnvironment environment,
     ITokenManager tokenManager) : base(loggerService, environment, userService)
 {
     _tokenManager   = tokenManager;
     _generalService = generalService;
 }
 public TareasController(IGeneralService <Tarea> generalService,
                         IGeneralService <Usuario> generalUserService,
                         IGeneralService <ComentarioTarea> generalComentarioService,
                         IGeneralService <ArchivoTarea> generalArchivoService)
 {
     _generalService           = generalService;
     _generalUserService       = generalUserService;
     _generalComentarioService = generalComentarioService;
     _generalArchivoService    = generalArchivoService;
 }
Ejemplo n.º 21
0
 public UserPermitsController(
     IUsersPermitsService usersPermits,
     UserManager <ApplicationUser> userManager,
     IGeneralService generalService,
     IDepartmentService departmentService)
 {
     _usersPermits      = usersPermits;
     _userManager       = userManager;
     _generalService    = generalService;
     _departmentService = departmentService;
 }
Ejemplo n.º 22
0
        protected BaseController(
            IUserResolverService userResolverService,
            IMapper mapper,
            IGeneralService <TEntity> service)
        {
            this.userResolverService = userResolverService;
            this.mapper  = mapper;
            this.service = service;

            this.Specification = null;
        }
Ejemplo n.º 23
0
 public UsuariosReasignacionController(
     IUserResolverService userResolverService,
     IMapper mapper,
     IGeneralService <UsuarioReasignacion> service,
     IUserService userService)
 {
     this.userResolverService = userResolverService;
     this.mapper      = mapper;
     this.service     = service;
     this.userService = userService;
 }
Ejemplo n.º 24
0
 public SendSMSController(ISmsService smsService,
     IWebWorker workerContext, IUserService userService, HttpContextBase httpContextBase, IDateTimeHelper dateTimeHelper, IGeneralService genservice, IAuthenticationService Authe)
 {
     this._iUserService = userService;
     this._dateTime = dateTimeHelper;
     this._httpContextBase = httpContextBase;
     this._workerContext = workerContext;
     this._genservice = genservice;
     this._smsService = smsService;
     this._Authe = Authe;
 }
        private void DoFavourite(DateTime datetime)
        {
            MessageBox.Show("The purchase was added to favourite parchases", "Access token", MessageBoxButton.OK, MessageBoxImage.Information);
            surrogatePurchase = new Surrogate<Purchase>(new PurchaseServiceProxy());

            foreach (var purch in Purchases.Where(purch => purch.PurchaseDate == datetime))
            {
                purch.Favorite = true;
                surrogatePurchase.Update(surrogatePurchase.Serialize(purch));
                return;
            }
        }
 public ComentarioController(
     IUserResolverService userResolverService,
     IMapper mapper,
     IGeneralService <Entrevista> service,
     IAsyncRepository <Entrevista> entrevistaRepository,
     ICandidatoService candidatoService)
     : base(userResolverService, mapper, service)
 {
     this.mapper = mapper;
     this.entrevistaRepository = entrevistaRepository;
     this.candidatoService     = candidatoService;
 }
Ejemplo n.º 27
0
 public InspeccionController(IHabilitacionesService HabilitacionesService
                             , IGeneralService GeneralService
                             , IOficinaService OficinaService
                             , IInspeccionService InspeccionService
                             , IHojaTramiteService HojaTramiteService)
 {
     _HabilitacionesService = HabilitacionesService;
     _GeneralService        = GeneralService;
     _OficinaService        = OficinaService;
     _InspeccionService     = InspeccionService;
     _HojaTramiteService    = HojaTramiteService;
 }
Ejemplo n.º 28
0
 public MagazineController(
     IMagazineService magazineService,
     IArticleService articleService,
     IMagazineCategoryService magazineCategoryService,
     IGeneralService generalService,
     IMapper mapperService)
 {
     _magService     = magazineService;
     _magCatService  = magazineCategoryService;
     _articleService = articleService;
     _generalService = generalService;
     _mapper         = mapperService;
 }
Ejemplo n.º 29
0
 public StatusBarController(StatusBarViewModel statusBarViewModel,
                            IGeneralService generalService,
                            IShellService shellService,
                            IDataUpdateService dataUpdateService)
 {
     this.statusBarViewModel         = statusBarViewModel;
     generalService.PropertyChanged += GeneralService_PropertyChanged;
     this.generalService             = generalService;
     this.shellService      = shellService;
     this.dataUpdateService = dataUpdateService;
     DisconnectCommand      = new DelegateCommand(Disconnect_Command);
     ResetCommand           = new DelegateCommand(Reset_Command);
 }
Ejemplo n.º 30
0
        public ViewResult Edit(int id)
        {
            ReferenceEditViewModel model = GetModel(id);

            model.PageTitle = string.Format("Page Basic Edit: {0}", model.Instance.Name);
            if (model.Instance.EnableLocation)
            {
                // Get available Locations
                IGeneralService generalService = ServiceLocator.Current.GetInstance <IGeneralService>();
                model.AvailableLocations = generalService.GetPublishedLocations();
            }
            return(View(model));
        }
        public NetworkAccessThreadController(IGeneralService generalService, ISettingsService settingsService, IDataFetchService dataFetchService)
        {
            this.generalService   = generalService;
            this.settingsService  = settingsService;
            this.dataFetchService = dataFetchService;
            dataFetchService.UnprocessedDataSets = new List <DataSet>();
            generalService.PropertyChanged      += GeneralService_PropertyChanged;
            connecting = false;
#if OFFLINE
            time = 0;
            val  = 0;
#endif
        }
Ejemplo n.º 32
0
 public PIDController(PIDControlViewModel viewModel,
                      IShellService shellService,
                      ISettingsService settingsService,
                      IGeneralService generalService,
                      IDataService dataService)
 {
     this.viewModel                  = viewModel;
     this.shellService               = shellService;
     this.settingsService            = settingsService;
     this.generalService             = generalService;
     this.dataService                = dataService;
     dataService.PIDDataUpdateEvent += IncomingPIDData;
     backupTuning = viewModel.PIDData.Copy();
 }
        public AddProductParametrVM()
        {
            SelectedProduct = new Entity.Product();
            SelectedProduct.ProductType = new ProductType();
            SelectedProductParameter = new ProductParametr();

            surrogateProduct = new Surrogate<Entity.Product>(new ProductServiceProxy());
            Products = surrogateProduct.Deserialize(surrogateProduct.GetAll());

            surrogateProductParameter = new Surrogate<ProductParametr>(new ProductParameterServiceProxy());
            Products = surrogateProduct.Deserialize(surrogateProductParameter.GetAll());

            ProductParametrs = new ObservableCollection<ProductParametr>(Products.Select(a => a.ProductType).ToList().FirstOrDefault().ProductParametrs.ToList());
        }
Ejemplo n.º 34
0
 public HomeController(ICountryService countryService, IRegionService regionService, IJobTypeService jobTypeService,
                       ISectorService sectorService, IExperienceService experienceService, IGenderService genderService,
                       IJobPostService jobPostService, IGeneralService generalService, IMapper mapper)
 {
     _countryService    = countryService;
     _regionService     = regionService;
     _jobTypeService    = jobTypeService;
     _sectorService     = sectorService;
     _experienceService = experienceService;
     _genderService     = genderService;
     _jobPostService    = jobPostService;
     _generalService    = generalService;
     _mapper            = mapper;
 }
Ejemplo n.º 35
0
        public MainWindowVM()
        {
            _surrogateProduct = new Surrogate<Product>(new ProductServiceProxy());
            Products = _surrogateProduct.Deserialize(_surrogateProduct.GetAll());
            _surrogateBuyer = new Surrogate<Buyer>(new BuyerServiceProxy());
            Buyers = _surrogateBuyer.Deserialize(_surrogateBuyer.GetAll());
            _surrogatePurchase = new Surrogate<Purchase>(new PurchaseServiceProxy());
            _surrogatePurchaseProduct = new Surrogate<PurchaseProduct>(new PurchaseProductServiceProxy());

            originator = new OriginatorSearching();
            history = new ProductsHistory();
            history.History.Push(originator.SaveState(new List<Product>(Products)));

            ProductPurchasesInCheck = new ObservableCollection<PurchaseProduct>();
        }
 public AddValueToParametrVM()
 {
     surrogateProduct = new Surrogate<Entity.Product>(new ProductServiceProxy());
     surrogateProductParametrValue = new Surrogate<Entity.ProductParametrValue>(new ProductParameterValueServiceProxy());
     Products = surrogateProduct.Deserialize(surrogateProduct.GetAll());
 }
Ejemplo n.º 37
0
 public LoginVM()
 {
     _surrogateBuyer = new Surrogate<Entity.Buyer>(new BuyerServiceProxy());
     Buyers = _surrogateBuyer.Deserialize(_surrogateBuyer.GetAll());
 }