/// <summary> /// Raises GTApplication SettingsWindow to change the settings /// for this interface. /// </summary> public override void ChangeSettings() { var dlg = new GazetrackerIPClientSettingsDialog { GazetrackerIPClientSetting = this.Settings }; if (dlg.ShowDialog() == DialogResult.OK) { this.settings = dlg.GazetrackerIPClientSetting; this.SerializeSettings(this.Settings, this.SettingsFile); if (this.client != null) { this.client.IPAddress = IPAddress.Parse(this.settings.GazeDataServerIPAddress); this.client.PortReceive = this.settings.GazeDataServerPort; this.client.PortSend = this.settings.CommandServerPort; } } }