Example #1
0
        /// <summary>
        ///   Raises <see cref="TobiiSettingsDialog" /> to change the settings
        ///   for this interface.
        /// </summary>
        public override void ChangeSettings()
        {
            var dlg = new TobiiSettingsDialog {
                TobiiSettings = this.tobiiSettings
            };

            switch (dlg.ShowDialog())
            {
            case DialogResult.OK:
                this.tobiiSettings = dlg.TobiiSettings;
                this.UpdateSettings();
                this.SerializeSettings(this.tobiiSettings, this.SettingsFile);
                break;
            }
        }
Example #2
0
 /// <summary>
 ///   Raises <see cref="TobiiSettingsDialog" /> to change the settings
 ///   for this interface.
 /// </summary>
 public override void ChangeSettings()
 {
   var dlg = new TobiiSettingsDialog { TobiiSettings = this.tobiiSettings };
   switch (dlg.ShowDialog())
   {
     case DialogResult.OK:
       this.tobiiSettings = dlg.TobiiSettings;
       this.UpdateSettings();
       this.SerializeSettings(this.tobiiSettings, this.SettingsFile);
       break;
   }
 }