Exemplo n.º 1
0
        private void saveSettings_Click(object sender, EventArgs e)
        {
            if (dailyStartCombo.SelectedItem.ToString() != "")
            {
                RegistryEdit.set_daily_start(dailyStartCombo.SelectedIndex);
            }
            Properties.Settings.Default.Save();

            settingsPanel.Hide();
            SettingsButton.Text = "Edit Settings";
        }
Exemplo n.º 2
0
        private void comboBox4_SelectedIndexChanged(object sender, EventArgs e)
        {
            MessageBox.Show("Daily start time set to: " + dailyStartCombo.Text);
            dailyStart.Text = dailyStartCombo.Text;
            gapStart.Items.Clear();
            gapStart.Items.AddRange(generate_times(dailyStartCombo.SelectedIndex));
            gapStop.Items.Clear();
            gapStop.Items.AddRange(generate_times(dailyStartCombo.SelectedIndex));

            // Set value in registry
            RegistryEdit.set_daily_start(dailyStartCombo.SelectedIndex);
        }
Exemplo n.º 3
0
        private void SettingsButton_Click(object sender, EventArgs e)
        {
            if (settingsPanel.Visible)
            {
                if (dailyStartCombo.SelectedItem.ToString() != "")
                {
                    RegistryEdit.set_daily_start(dailyStartCombo.SelectedIndex);
                }

                settingsPanel.Hide();
                SettingsButton.Text = "Edit Settings";
            }
            else
            {
                settingsPanel.Show();
                SettingsButton.Text = "Close [X]";
            }
        }
Exemplo n.º 4
0
 private void dailyStartCombo_SelectedIndexChanged(object sender, EventArgs e)
 {
     // set the registry value for our start time to the selected start time
     RegistryEdit.set_daily_start(dailyStartCombo.SelectedIndex);
 }