Ejemplo n.º 1
0
        /// <summary>
        ///   Raises SettingsWindow to change the network settings for the haytham tracker
        /// </summary>
        public override void ChangeSettings()
        {
            var dlg = new HaythamSettingsDialog {
                HaythamSetting = this.Settings
            };

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                this.settings = dlg.HaythamSetting;
                this.SerializeSettings(this.Settings, this.SettingsFile);

                if (this.haythamClient != null)
                {
                    this.haythamClient.ServerIPAddress = IPAddress.Parse(this.settings.HaythamServerIPAddress);
                }
            }
        }
Ejemplo n.º 2
0
    /// <summary>
    ///   Raises SettingsWindow to change the network settings for the haytham tracker
    /// </summary>
    public override void ChangeSettings()
    {
      var dlg = new HaythamSettingsDialog { HaythamSetting = this.Settings };

      if (dlg.ShowDialog() == DialogResult.OK)
      {
        this.settings = dlg.HaythamSetting;
        this.SerializeSettings(this.Settings, this.SettingsFile);

        if (this.haythamClient != null)
        {
          this.haythamClient.ServerIPAddress = IPAddress.Parse(this.settings.HaythamServerIPAddress);
        }
      }
    }