/// <summary> /// Tray icon popup > Configure. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void trayPopupButton_Click(object sender, EventArgs e) { TrayPopupSettings popupSettings = m_settings.UI.SystemTrayPopup; using (TrayPopupConfigForm f = new TrayPopupConfigForm(popupSettings)) { // Edit a copy of the current settings f.ShowDialog(); if (f.DialogResult != DialogResult.OK) return; m_settings.UI.SystemTrayPopup = popupSettings; trayPopupRadio.Checked = true; } }
/// <summary> /// Tray icon popup > Configure. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void trayPopupButton_Click(object sender, EventArgs e) { var popupSettings = m_settings.UI.SystemTrayPopup.Clone(); using (TrayPopupConfigForm f = new TrayPopupConfigForm(popupSettings)) { // Edit a copy of the current settings f.ShowDialog(); if (f.DialogResult == DialogResult.OK) { m_settings.UI.SystemTrayPopup = popupSettings; trayPopupRadio.Checked = true; } } }