Exemplo n.º 1
0
 public HomeController(IUserRepository user, IMainManager mainManager, Iillness illness)
 {
     _user        = user;
     _mainManager = mainManager;
     _ajax        = new List <string>();
     _illness     = illness;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="policyManager"></param>
 /// <param name="suspendedSaleService"></param>
 /// <param name="resourceManager"></param>
 /// <param name="saleHeadManager"></param>
 /// <param name="saleManager"></param>
 /// <param name="saleLineManager"></param>
 /// <param name="loginManager"></param>
 /// <param name="customerManager"></param>
 /// <param name="reasonService"></param>
 /// <param name="paymentManager"></param>
 /// <param name="receiptManager"></param>
 /// <param name="prepayManager"></param>
 /// <param name="mainManager"></param>
 public SuspendedSaleManager(IPolicyManager policyManager,
                             ISuspendedSaleService suspendedSaleService,
                             IApiResourceManager resourceManager,
                             ISaleHeadManager saleHeadManager,
                             ISaleManager saleManager,
                             ISaleLineManager saleLineManager,
                             ILoginManager loginManager,
                             ICustomerManager customerManager,
                             IReasonService reasonService,
                             IPaymentManager paymentManager,
                             IReceiptManager receiptManager, IPrepayManager prepayManager,
                             IMainManager mainManager)
 {
     _policyManager        = policyManager;
     _suspendedSaleService = suspendedSaleService;
     _resourceManager      = resourceManager;
     _saleHeadManager      = saleHeadManager;
     _saleManager          = saleManager;
     _saleLineManager      = saleLineManager;
     _loginManager         = loginManager;
     _customerManager      = customerManager;
     _reasonService        = reasonService;
     _paymentManager       = paymentManager;
     _receiptManager       = receiptManager;
     _prepayManager        = prepayManager;
     _mainManager          = mainManager;
 }
 public DuplicatesContentViewModel()
 {
     _logger                         = (Internal.ILogger)Bootstrap.Instance.Services.GetService(typeof(Internal.ILogger));
     _repository                     = (IDuplicatesRepository)Bootstrap.Instance.Services.GetService(typeof(IDuplicatesRepository));
     _duplicatesManager              = (IDuplicatesManager)Bootstrap.Instance.Services.GetService(typeof(IDuplicatesManager));
     _duplicatesManager.RefreshData += _duplicatesManager_RefreshData;
     _mainManager                    = (IMainManager)Bootstrap.Instance.Services.GetService(typeof(IMainManager));
 }
Exemplo n.º 4
0
        public MainWindowViewModel()
        {
            _logger      = (Internal.ILogger)Bootstrap.Instance.Services.GetService(typeof(Internal.ILogger));
            _mainManager = (IMainManager)Bootstrap.Instance.Services.GetService(typeof(IMainManager));
            _mainManager.StatusBarInfoTextChanged += _mainManager_StatusBarInfoTextChanged;

            Task.Run(OnRefresh).Wait();
        }
Exemplo n.º 5
0
 public JobsContentViewModel()
 {
     _logger                   = (Internal.ILogger)Bootstrap.Instance.Services.GetService(typeof(Internal.ILogger));
     _repository               = (IJobRepository)Bootstrap.Instance.Services.GetService(typeof(IJobRepository));
     _jobService               = (JobService.IJobService)Bootstrap.Instance.Services.GetService(typeof(JobService.IJobService));
     _jobServiceRepository     = (JobService.IJobServiceRepository)Bootstrap.Instance.Services.GetService(typeof(JobService.IJobServiceRepository));
     _compare                  = (JobService.ICompare)Bootstrap.Instance.Services.GetService(typeof(JobService.ICompare));
     _compare.JobStateChanged += _compare_JobStateChanged;
     _mainManager              = (IMainManager)Bootstrap.Instance.Services.GetService(typeof(IMainManager));
 }
Exemplo n.º 6
0
        public Form1(IMainManager mainManager)
        {
            InitializeComponent();

            SetScrollPanelHeight(buttonHome.Height, buttonHome.Top, "Galvenā");
            SetActivePanel(PanelType.Home);

            buttonShowStatistics.Visible = buttonPrint.Visible = false;

            _mainManager = mainManager;
        }
Exemplo n.º 7
0
        public MainWindow()
        {
            _mainManager = (IMainManager)Bootstrap.Instance.Services.GetService(typeof(IMainManager));

            _viewModel  = new MainWindowViewModel();
            DataContext = _viewModel;

            InitializeComponent();

            MainTabControl.SelectionChanged  += MainTabControl_SelectionChanged;
            _mainManager.TabGridItemsChanged += _mainManager_TabGridItemsChanged;
        }
Exemplo n.º 8
0
 public CompareInAppHosting()
 {
     jobTasks                          = new Dictionary <Job, CancellationTokenSource>();
     duplicates                        = new Compare.Duplicates();
     _logger                           = (Internal.ILogger)Bootstrap.Instance.Services.GetService(typeof(Internal.ILogger));
     _repository                       = (Jobs.IJobRepository)Bootstrap.Instance.Services.GetService(typeof(Jobs.IJobRepository));
     _folderRepository                 = (Folders.IFolderRepository)Bootstrap.Instance.Services.GetService(typeof(Folders.IFolderRepository));
     _jobServiceRepository             = (IJobServiceRepository)Bootstrap.Instance.Services.GetService(typeof(IJobServiceRepository));
     _duplicatesManager                = (Duplicates.IDuplicatesManager)Bootstrap.Instance.Services.GetService(typeof(Duplicates.IDuplicatesManager));
     _mainManager                      = (IMainManager)Bootstrap.Instance.Services.GetService(typeof(IMainManager));
     _mainManager.ApplicationClosing  += _mainManager_ApplicationClosing;
     _mainManager.ApplicationStarting += _mainManager_ApplicationStarting;
 }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="policyManager"></param>
 /// <param name="resourceManager"></param>
 /// <param name="saleLineManager"></param>
 /// <param name="taxService"></param>
 /// <param name="stockService"></param>
 /// <param name="saleManager"></param>
 /// <param name="mainManager"></param>
 public PriceCheckManager(
     IPolicyManager policyManager,
     IApiResourceManager resourceManager,
     ISaleLineManager saleLineManager,
     ITaxService taxService,
     IStockService stockService,
     ISaleManager saleManager,
     IMainManager mainManager)
 {
     _policyManager   = policyManager;
     _resourceManager = resourceManager;
     _saleLineManager = saleLineManager;
     _taxService      = taxService;
     _stockService    = stockService;
     _saleManager     = saleManager;
     _mainManager     = mainManager;
 }
Exemplo n.º 10
0
 public FoldersContentViewModel()
 {
     _logger      = (Internal.ILogger)Bootstrap.Instance.Services.GetService(typeof(Internal.ILogger));
     _repository  = (IFolderRepository)Bootstrap.Instance.Services.GetService(typeof(IFolderRepository));
     _mainManager = (IMainManager)Bootstrap.Instance.Services.GetService(typeof(IMainManager));
 }
 public MainController(IMainManager mainManager)
 {
     _mainManager = mainManager;
 }
Exemplo n.º 12
0
 public ValuesController(IMainManager mainManager, IScheduledJob scheduledJob, ILogger <ValuesController> logger)
 {
     this.mainManager  = mainManager;
     this.scheduledJob = scheduledJob;
     this.logger       = logger;
 }
Exemplo n.º 13
0
 public CacheContentViewModel()
 {
     _logger      = (Internal.ILogger)Bootstrap.Instance.Services.GetService(typeof(Internal.ILogger));
     _repository  = (JobService.IJobServiceRepository)Bootstrap.Instance.Services.GetService(typeof(JobService.IJobServiceRepository));
     _mainManager = (IMainManager)Bootstrap.Instance.Services.GetService(typeof(IMainManager));
 }
Exemplo n.º 14
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="mainManager">Main manager</param>
 public SystemController(IMainManager mainManager)
 {
     _mainManager = mainManager;
 }