Exemple #1
0
        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();
        }
Exemple #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;
 }