public EmulatorDataProvider() { var appPath = Application.StartupPath + "/"; configuration = EmulatorConfiguration.Deserialize(appPath + "Settings/Emulator.xml"); emulator.setConfiguration(configuration); scanTimer = new Timer(); scanTimer.Elapsed += StartScan; scanTimer.Interval = 5 * 60 * 1000; scanTimer.Start(); }
/// <summary> /// Устанавливает кнфигурацию эмулятора. /// </summary> /// <param name="aConfiguration">Конфигурация эмулятора.</param> public void setConfiguration(EmulatorConfiguration aConfiguration) { configuration = aConfiguration; }