Пример #1
0
        public TradeServerManagerViewModel(ViewModelContext viewModelContext, ITradeServerService tradeServerService)
            : base(viewModelContext)
        {
            this.tradeServerService = tradeServerService;

            AddTradeServerCommand    = new ViewModelCommand(AddTradeServer);
            DeleteTradeServerCommand = new ViewModelCommand(DeleteTradeServer);
            CloseCommand             = new ViewModelCommand(Close);

            SelectedTradeServerViewModels = new ObservableCollection <TradeServerViewModel>();
        }
Пример #2
0
        public TradeServerManagerViewModel(ViewModelContext viewModelContext, ITradeServerService tradeServerService)
            : base(viewModelContext)
        {
            this.tradeServerService = tradeServerService;

            AddTradeServerCommand    = new ViewModelCommand(AddTradeServer);
            DeleteTradeServerCommand = new ViewModelCommand(DeleteTradeServer);
            CloseCommand             = new ViewModelCommand(Close);

            SelectedTradeServerViewModels      = new ObservableCollection <TradeServerViewModel>();
            tradeServerObservableSubscriptions = new Dictionary <string, IDisposable>();
        }
 public TradeServerController(ITradeServerService tradeServerService, ILogger <TradeServerController> logger)
 {
     this.tradeServerService = tradeServerService;
     this.logger             = logger;
 }
Пример #4
0
 public TradeServerViewModel(TradeServer tradeServer, ITradeServerService tradeServerService, ILoggerFacade logger)
     : base(logger)
 {
     this.tradeServer        = tradeServer;
     this.tradeServerService = tradeServerService;
 }