Exemplo n.º 1
0
 public OrderReviewer(EventDispatcher eventDispatcher)
 {
     _eventDispatcher = eventDispatcher;
     _eventDispatcher.updateActionToTakeRequestHandler += UpdateActionToTakeListener;
     _ordersForReview = new Dictionary<string, List<string[]>>();
     _actionsToTake = new Dictionary<string, string>();
 }
Exemplo n.º 2
0
 public CharacterManager(Paths paths, AccountManager accountManager)
 {
     _paths = paths;
     _accountManager = accountManager;
     _characters = new Dictionary<String, Character>();
     ActiveCharacters = new List<String>();
     InactiveCharacters = new List<String>();
     SelectedCharacter = null;
     _textFileio = new TextFileio(paths.ConfigPath, null);
     _eventDispatcher = EventDispatcher.Instance;
     _eventDispatcher.characterSettingUpdatedHandler += CharacterSettingUpdatedListener;
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
0
 public etview(CharacterInfoProvider characterInfoProvider, ClientConfigInfoProvider clientConfigInfoProvider,
     OrderReviewInfoProvider orderReviewInfoProvider, AutomationRequester manualExecution)
 {
     InitializeComponent();
     _characterInfoProvider = characterInfoProvider;
     _clientConfigInfoProvider = clientConfigInfoProvider;
     _orderReviewInfoProvider = orderReviewInfoProvider;
     _manualExecution = manualExecution;
     _eventDispatcher = EventDispatcher.Instance;
     _eventDispatcher.GenericEvent += GenericEventListener;
     _eventDispatcher.GenericErrorEvent += GenericErrorEventListener;
     _eventDispatcher.AutoAdjusterEvent += AutoAdjusterListener;
     _eventDispatcher.AutoListerEvent += AutoListerListener;
     InitializeCharacterView();
     InitializeConfigView();
 }
Exemplo n.º 5
0
        public GuiBot(ClientConfig clientConfig, EveUi eveUi, Paths paths, Character character,
            OrderAnalyzer orderAnalyzer)
        {
            ClientConfig = clientConfig;
            EveUi = eveUi;
            Paths = paths;
            Character = character;
            Logger = EventDispatcher.Instance;
            Timing = clientConfig.TimingMultiplier;
            Mouse = new Mouse(clientConfig.TimingMultiplier);
            Keyboard = new Keyboard();
            ErrorParser = new ErrorParser();
            OrderAnalyzer = orderAnalyzer;

            _shortContextMenuAdjustment = -eveUi.StandardRowHeight;
        }