Пример #1
0
 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
 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();
 }