/////////////////////////////////////////////////////////////////////////////// // Construction and Initializing methods // /////////////////////////////////////////////////////////////////////////////// #region CONSTRUCTION /// <summary> /// Initializes a new instance of the <see cref="SmartEyeCalibrationRunner"/> class. /// </summary> /// <param name="client">The <see cref="SmartEyeClient"/></param> /// <param name="settings">The <see cref="SmartEyeSetting"/></param> public SmartEyeCalibrationRunner(SmartEyeClient client, SmartEyeSetting settings) { this.client = client; this.client.UdpSocket.PacketReceived += this.BaseClientOnPacketReceived; this.client.PropertyChanged += this.SmartEyeClientPropertyChanged; this.settings = settings; this.smartEyeCalibrationForm = new SmartEyeCalibrationForm(); this.smartEyeCalibrationForm.Load += this.SmartEyeCalibrationFormLoaded; this.smartEyeCalibrationForm.KeyDown += this.SmartEyeCalibrationFormKeyDown; this.initTimer = new Timer() { Interval = 50 }; this.initTimer.Tick += this.CheckStartCalibration; this.collectSamplesTimer = new Timer() { Interval = 50 }; this.collectSamplesTimer.Tick += this.CheckCollectSamples; this.HasShownMessage = false; }