コード例 #1
0
 public ReportController(ILogger <ReportController> logger, DbContext db)
 {
     _logger              = logger;
     _storage             = new Storage(db);
     _timeTrackingService = new YouTrackService();
     _chartService        = new ChartService();
 }
コード例 #2
0
 public DashboardController(ILogEntryRepository logEntryRepository, IChartService chartService, IWeek week, IDateAndExcetionsRepository dateAndExcetionsRepository)
 {
     _logEntryRepository = logEntryRepository;
     _chartService       = chartService;
     _week             = week;
     _DateAndExcetions = dateAndExcetionsRepository;
 }
コード例 #3
0
 public ChartController(
     IChartService chartService,
     IMapper mapper)
 {
     _chartService = chartService;
     _mapper       = mapper;
 }
コード例 #4
0
 public StatisticsController(IChartService chartService, IMapper mapper, IGateUsageService gateUsageService, IOrderService orderService)
 {
     _chartService     = chartService;
     _mapper           = mapper;
     _gateUsageService = gateUsageService;
     _orderService     = orderService;
 }
コード例 #5
0
 public ExpensesController(IExpenseRepository repository, ICategoryRepository categoryRepository, UserManager <IdentityUser> userManager, IChartService service)
 {
     _repository         = repository;
     _userManager        = userManager;
     _categoryRepository = categoryRepository;
     _service            = service;
 }
コード例 #6
0
 public ChartModule(ILogger <ChartModule> logger, IChartService chartService, IPlayerService playerService, IBasicEmbedsService basicEmbedsService)
 {
     _logger             = logger;
     _chartService       = chartService;
     _playerService      = playerService;
     _basicEmbedsService = basicEmbedsService;
 }
コード例 #7
0
ファイル: DocSendService.cs プロジェクト: windygu/ERP
 public DocSendService(IDocumentService documentService, IChartEmployeeService chartEmployeeService, ISendService sendService, IChartService chartService, IDocTitleService titleService)
 {
     _documentService      = documentService;
     _chartEmployeeService = chartEmployeeService;
     _sendService          = sendService;
     _chartService         = chartService;
     _titleService         = titleService;
 }
コード例 #8
0
        public OrderController(IOrderService orderService, IChartService chartService)
        {
            //orderService = new OrderServiceProxy();
            //chartService = new WebChartService();

            this.orderService = orderService;
            this.chartService = chartService;
        }
コード例 #9
0
 public DocumentService(IUnitOfWork uow, IChartService chartService)
 {
     _uow          = uow;
     _chartService = chartService;
     _docHistory   = _uow.Set <DocHistory>();;
     _send         = _uow.Set <DomainLayer.DB_Model.Send.Send>();
     _document     = _uow.Set <DomainLayer.DB_Model.Documents.Document>();
 }
コード例 #10
0
        public MainViewModel()
        {
            Messenger.Default.Register <LocalModeMessage>(this, HandleLocalModeMessage);
            Messenger.Default.Register <TaxlotMessage>(this, HandleTaxlotMessage);
            Messenger.Default.Register <PositionMessage>(this, HandlePositionsMessage);
            Messenger.Default.Register <TradeCompleteMessage>(this, HandleTradeCompleteMessage);
            Messenger.Default.Register <LimitOrderMessage>(this, HandleLimitOrderMessage);
            Messenger.Default.Register <StockDataResponseMessage>(this, HandleStockDataResponse);
            Messenger.Default.Register <PositionPricingMessage>(this, HandlePositionPricingMessage);
            Messenger.Default.Register <ChartResponseMessage>(this, HandleChartResponseMessage);

            TradeTypeStrings = new ObservableCollection <string>()
            {
                " ", "Buy", "Sell"
            };
            TradeTermStrings = new ObservableCollection <string>()
            {
                " ", "Market", "Limit", "Stop", "Stop Limit"
            };
            TradeDurationStrings = new ObservableCollection <string> {
                " ", "Day", "GTC", "Market Close", "Market Open", "Overnight"
            };
            SecurityTypes = new ObservableCollection <Security> {
                new Stock(), new MutualFund()
            };

            Positions = new ObservableCollection <Position>();
            Taxlots   = new ObservableCollection <Taxlot>();

            SelectedTradeType    = TradeTypeStrings[0];
            SelectedTermType     = TradeTermStrings[0];
            SelectedDurationType = TradeDurationStrings[0];
            ChartSubtitle        = "All Positions";
            PreviewButtonText    = "Preview Order";
            ShowLimitButtonText  = "Show Limit Orders";
            LimitOrdersHidden    = true;
            LimitBoxActive       = false;
            OrderTermsOK         = false;
            LimitPrice           = 0;
            TotalValue           = 0;
            TotalCostBasis       = 0;
            TotalGainLoss        = 0;
            AlertBoxMessage      = "";
            LimitOrderIsSelected = false;
            _canLoad             = true;
            _canSave             = true;
            _hiddenPositions     = new List <Position>();

            _chartService               = SimpleIoc.Default.GetInstance <IChartService>();
            _stockDataService           = SimpleIoc.Default.GetInstance <IStockDataService>();
            _portfolioDatabaseService   = SimpleIoc.Default.GetInstance <IPortfolioDatabaseService>();
            _portfolioManagementService = SimpleIoc.Default.GetInstance <IPortfolioManagementService>();



            //Notify other classes that startup is complete.
            Messenger.Default.Send <StartupCompleteMessage>(new StartupCompleteMessage(true));
        }
コード例 #11
0
 public TimeController(ITimeMatrixService timeMatrix,
                       IOrganizationRecruiter recruiter,
                       IServiceProvider serviceProvider,
                       IChartService chartService) : base(serviceProvider)
 {
     _recruiter    = recruiter;
     _timeMatrix   = timeMatrix;
     _chartService = chartService;
 }
コード例 #12
0
 public HomeController(IWeatherService weatherService, IUserService userService, IGateUsageService gateUsageService, IMapper mapper, IChartService chartService, IPortalMessageService portalMessageService)
 {
     _weatherService       = weatherService;
     _userService          = userService;
     _gateUsageService     = gateUsageService;
     _mapper               = mapper;
     _chartService         = chartService;
     _portalMessageService = portalMessageService;
 }
コード例 #13
0
 public ChartController(
     IChartService chartService,
     IViewService viewService,
     ISubclassRepository subclassRepository)
 {
     this.chartService       = chartService;
     this.viewService        = viewService;
     this.subclassRepository = subclassRepository;
 }
コード例 #14
0
ファイル: Chart.cs プロジェクト: WillB01/LoggingProject
 public ExceptionChartStart(IChartService chartService, IWeek week, ILogEntryRepository logEntryRepository, int prevWeek, bool isPrev, bool isNext)
 {
     _logEntryRepository = logEntryRepository;
     _chartService       = chartService;
     _week     = week;
     _prevWeek = prevWeek;
     _isPrev   = isPrev;
     _isNext   = isNext;
 }
コード例 #15
0
 public ChartsController(
     IChartRepository chartRepository,
     IChartService chartService,
     IServiceLogger <ChartsController> logger)
 {
     _chartService    = chartService;
     _chartRepository = chartRepository;
     _logger          = logger;
 }
コード例 #16
0
 public TimeController(ITimeMatrixService timeMatrix,
                       IOrganizationMarketer marketer,
                       IServiceProvider serviceProvider,
                       IChartService chartService) : base(serviceProvider)
 {
     _marketer     = marketer;
     _timeMatrix   = timeMatrix;
     _chartService = chartService;
 }
コード例 #17
0
 public ChartController(
     ChartRepository repo,
     IChartService chartService,
     IUserService userService)
 {
     _repo         = repo;
     _chartService = chartService;
     _userService  = userService;
 }
コード例 #18
0
 public TimeController(IServiceProvider serviceProvider,
                       IOrganizationCustomer orgCustomer,
                       ITimeMatrixService timeService,
                       IChartService chartService) : base(serviceProvider)
 {
     _orgCustomer  = orgCustomer;
     _timeService  = timeService;
     _chartService = chartService;
 }
コード例 #19
0
ファイル: frmPrsRelationChart.cs プロジェクト: windygu/ERP
        public FrmPrsRelationChart(IChartEmployeeService userManager,
                                   IEmployeeService employeeManager,
                                   IChartService chartManager)
        {
            InitializeComponent();

            _chartEmployeeManager = userManager;
            _employeeManager      = employeeManager;
            _chartManager         = chartManager;
        }
コード例 #20
0
 public TimeController(ITimeEntryService service, ITimeMatrixService timeMatrix,
                       IOrganizationContractor contractor,
                       IServiceProvider provider,
                       IChartService chartService)  : base(provider)
 {
     _contractor   = contractor;
     _timeService  = service;
     _timeMatrix   = timeMatrix;
     _chartService = chartService;
 }
コード例 #21
0
 public TimeController(
     ITimeEntryService timeEntryService,
     IChartService chartService,
     IServiceProvider serviceProvider, IOrganizationAccountManager am, ITimeMatrixService matrixService) : base(serviceProvider)
 {
     _timeEntryService = timeEntryService;
     _chartService     = chartService;
     _am            = am;
     _matrixService = matrixService;
 }
コード例 #22
0
 public HomeViewModel(
     INotificationService notificationService,
     IChartService chartService,
     IBookingService bookingService,
     IAuthenticationService authenticationService)
 {
     _notificationService   = notificationService;
     _chartService          = chartService;
     _bookingService        = bookingService;
     _authenticationService = authenticationService;
 }
コード例 #23
0
 public TimeController(ITimeEntryService service,
                       IOrganizationProjectManager projectManager,
                       ITimeMatrixService timeMatrixService,
                       IChartService chartService,
                       IServiceProvider serviceProvider) : base(serviceProvider)
 {
     _projectManager    = projectManager;
     _timeMatrixService = timeMatrixService;
     _timeService       = service;
     _chartService      = chartService;
 }
コード例 #24
0
 public HomeController(
     IImportService importService,
     ISqLiteService sqLiteService,
     IChartService chartService,
     IAccountService accountService)
 {
     _importService  = importService;
     _sqLiteService  = sqLiteService;
     _chartService   = chartService;
     _accountService = accountService;
 }
コード例 #25
0
 public CarbonaraController(
     ICalculationService calculationService,
     IMiningHardwareService miningHardwareService,
     IChartService chartService,
     IBitcoinWalletInformationService bitcoinWalletInformationService)
 {
     _calculationService              = calculationService;
     _miningHardwareService           = miningHardwareService;
     _chartService                    = chartService;
     _bitcoinWalletInformationService = bitcoinWalletInformationService;
 }
コード例 #26
0
ファイル: ChartViewModel.cs プロジェクト: ganesum/Blitz
        public ChartViewModel(ILog log, IDispatcherSchedulerProvider scheduler, IStandardDialog standardDialog,
                              BindableCollection <HistoricalDataDto> itemsCollection, IChartService service)
            : base(log, scheduler, standardDialog)
        {
            _service = service;
            Disposables.Add(service);

            this.SetupHeader(Scheduler, "Chart");

            Items     = itemsCollection;
            GoCommand = new DelegateCommand(GetData, () => !string.IsNullOrEmpty(Ticker));
        }
コード例 #27
0
ファイル: ChartViewModel.cs プロジェクト: ganesum/Blitz
        public ChartViewModel(ILog log, IDispatcherSchedulerProvider scheduler, IStandardDialog standardDialog,
                              BindableCollection<HistoricalDataDto> itemsCollection, IChartService service)
            : base(log, scheduler, standardDialog)
        {
            _service = service;
            Disposables.Add(service);

            this.SetupHeader(Scheduler, "Chart");

            Items = itemsCollection;
            GoCommand = new DelegateCommand(GetData, () => !string.IsNullOrEmpty(Ticker));
        }
コード例 #28
0
 public HomeViewModel(
     INotificationService notificationService,
     IChartService chartService,
     IBookingService bookingService,
     IAuthenticationService authenticationService)
 {
     _notificationService   = notificationService;
     _chartService          = chartService;
     _bookingService        = bookingService;
     _authenticationService = authenticationService;
     _notifications         = new ObservableCollection <Notification>();
 }
コード例 #29
0
        public ChartsController(IChartService chartService)
        {
            _chartService = chartService;

            try
            {
                _idLoggedUser = System.Web.HttpContext.Current.GetOwinContext().GetUserManager <ApplicationUserManager>().FindById(System.Web.HttpContext.Current.User.Identity.GetUserId()).Id;
            }
            catch (Exception ex)
            {
                _idLoggedUser = string.Empty;
            }
        }
コード例 #30
0
        public CounterViewModel(
            IDataService dataService,
            IChartService chartService,
            ISettingsService settingsService)
        {
            _dataService     = dataService;
            _chartService    = chartService;
            _settingsService = settingsService;

            IncrementCommand = new Command(async() => await IncrementAsync());

            Task.Run(async() => await Init());
        }
コード例 #31
0
 public UserController(
     IUserService userService,
     ChartRepository chartRepository,
     IChartService chartService,
     IChartDateService chartDateService,
     ILastFmService lastFmService)
 {
     _userService      = userService;
     _chartRepository  = chartRepository;
     _chartService     = chartService;
     _chartDateService = chartDateService;
     _lastFm           = lastFmService;
 }
コード例 #32
0
ファイル: ReportService.cs プロジェクト: neozhu/Ecommerce
 public ReportService(IChartService chartService, IOrderAnalyticsService orderAnalyticsService, EcommerceSettings ecommerceSettings)
 {
     _chartService = chartService;
     _orderAnalyticsService = orderAnalyticsService;
     _ecommerceSettings = ecommerceSettings;
 }