コード例 #1
0
ファイル: DataManager.cs プロジェクト: noxgg/nox-trader
        public DataManager()
        {
            Paths = new Paths();
            ClientConfig = new ClientConfig();
            EventDispatcher = EventDispatcher.Instance;
            EventDispatcher.clientSettingUpdatedHandler += ClientSettingUpdatedListener;
            EventDispatcher.saveAllSettingsRequestHandler += SaveAllSettingsRequestListener;
            EventDispatcher.getTypesFromFileRequestHandler += GetTypeForCharacterFromNewestLogFile;

            AccountManager = new AccountManager();
            CharacterManager = new CharacterManager(Paths, AccountManager);
            Modules = new Modules();
            Ui = new EveUi();

            try
            {
                _configFileName = RootConfigFilename;
                Initialize();
            }
            catch (Exception)
            {
                _configFileName = RootConfigFilenameAlt;
                Initialize();
            }

            _marketOrderio = new MarketOrderio();
        }
コード例 #2
0
ファイル: PuppetMaster.cs プロジェクト: noxgg/nox-trader
 public PuppetMaster(DataManager dataManager)
 {
     _characterManager = dataManager.CharacterManager;
     _orderAnalyzer = new OrderAnalyzer();
     OrderReviewer = new OrderReviewer(dataManager.EventDispatcher);
     LoginBot = new LoginBot(dataManager.ClientConfig, dataManager.Ui, dataManager.Paths, null,
                             _orderAnalyzer);
     _autoLister = new AutoLister(dataManager.ClientConfig, dataManager.Ui, dataManager.Paths, null,
                                  dataManager.Modules, _orderAnalyzer);
     _autoAdjuster = new AutoAdjuster(dataManager.ClientConfig, dataManager.Ui, dataManager.Paths, null,
                                      dataManager.Modules, _orderAnalyzer, OrderReviewer);
     _autoInvestor = new AutoInvestor(dataManager.ClientConfig, dataManager.Ui, dataManager.Paths, null,
                                      dataManager.Modules, _orderAnalyzer);
     _eventDispatcher = dataManager.EventDispatcher;
 }
コード例 #3
0
 public CharacterInfoProvider(CharacterManager characterManager, Modules modules)
 {
     _characterManager = characterManager;
     _modules = modules;
 }