Exemple #1
0
        private void toolStripButton_timer_Click(object sender, EventArgs e)
        {
            ToolStripButton button = sender as ToolStripButton;

            ExchangeManager.ExchangeTimerType type = ExchangeManager.getExchangeTimerType(button.Tag.ToString());
            PreferenceManager.toggleTimerPreference(type);
            UpdateUI();
        }
Exemple #2
0
        static ConsoleColor getExchangeTimerTypeActiveColor(ExchangeManager.ExchangeTimerType type)
        {
            bool hasType = (PreferenceManager.preferences.TimerFlags & type) != ExchangeManager.ExchangeTimerType.NONE;

            if (hasType)
            {
                return(ConsoleColor.White);
            }
            else
            {
                return(ConsoleColor.DarkGray);
            }
        }