/// <summary> /// Tray icon tooltip > Configure. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void trayTooltipButton_Click(object sender, EventArgs e) { TrayTooltipSettings tooltipSettings = m_settings.UI.SystemTrayTooltip; using (TrayTooltipConfigForm f = new TrayTooltipConfigForm(tooltipSettings)) { // Set current tooltip string f.ShowDialog(); if (f.DialogResult != DialogResult.OK) return; // Save changes in local copy m_settings.UI.SystemTrayTooltip = tooltipSettings; trayTooltipRadio.Checked = true; } }
/// <summary> /// Initializes a new instance of the <see cref="TrayTooltipConfigForm"/> class. /// </summary> /// <param name="settings">The settings.</param> public TrayTooltipConfigForm(TrayTooltipSettings settings) { InitializeComponent(); m_settings = settings; }