예제 #1
0
        /// <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;
                }
            }
        }
예제 #2
0
    /// <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;
        }
      }
    }