Esempio n. 1
0
        /// <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;
            }
        }
Esempio n. 2
0
 /// <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;
 }