/// <summary> /// Save the CommandBar position in application property settings. /// </summary> /// <param name="settings"></param> internal void SavePosition(Properties.Settings settings) { settings.BarLeft = _commandBar.Left; settings.BarPosition = (int)_commandBar.Position; settings.BarPositionSaved = true; settings.BarRowIndex = _commandBar.RowIndex; settings.BarTop = _commandBar.Top; settings.Save(); }
internal void Settings() { var settingsBox = new Settings(_settings); settingsBox.TopMost = true; var result = settingsBox.ShowDialog(); if (result != DialogResult.OK) return; _settings.Encrypt2Self = settingsBox.Encrypt2Self; _settings.AutoDecrypt = settingsBox.AutoDecrypt; _settings.AutoVerify = settingsBox.AutoVerify; _settings.AutoEncrypt = settingsBox.AutoEncrypt; _settings.AutoSign = settingsBox.AutoSign; _settings.DefaultKey = settingsBox.DefaultKey; _settings.DefaultDomain = settingsBox.DefaultDomain; _settings.Default2PlainFormat = settingsBox.Default2PlainFormat; _settings.IgnoreIntegrityCheck = settingsBox.IgnoreIntegrityCheck; _settings.Save(); }