コード例 #1
0
ファイル: Program.cs プロジェクト: noxgg/nox-trader
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     DataManager dataManager = new DataManager();
     PuppetMaster puppetMaster = new PuppetMaster(dataManager);
     CharacterInfoProvider characterInfoProvider = new CharacterInfoProvider(dataManager.CharacterManager, dataManager.Modules);
     ClientConfigInfoProvider clientConfigInfoProvider = new ClientConfigInfoProvider(dataManager.Paths, dataManager.ClientConfig);
     OrderReviewInfoProvider orderReviewInfoProvider = new OrderReviewInfoProvider(puppetMaster.OrderReviewer);
     AutomationRequester manualExecution = new AutomationRequester(puppetMaster);
     Mouse.SuspendEvent = new ManualResetEvent(true);
     Application.Run(new etview(characterInfoProvider, clientConfigInfoProvider, orderReviewInfoProvider, manualExecution));
 }
コード例 #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;
 }