Ejemplo n.º 1
0
        /// <summary>
        /// Raises <see cref="SMISettingsDlg"/> to change the settings
        /// for this interface.
        /// </summary>
        public override void ChangeSettings()
        {
            var dlg = new SMISettingsDlg {
                SMISettings = this.smiSettings
            };

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                this.smiSettings = dlg.SMISettings;
                this.SerializeSettings(this.smiSettings, this.SettingsFile);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Raises <see cref="SMISettingsDlg"/> to change the settings
 /// for this interface.
 /// </summary>
 public override void ChangeSettings()
 {
   var dlg = new SMISettingsDlg { SMISettings = this.smiSettings };
   if (dlg.ShowDialog() == DialogResult.OK)
   {
     this.smiSettings = dlg.SMISettings;
     this.SerializeSettings(this.smiSettings, this.SettingsFile);
   }
 }