Exemplo n.º 1
0
 // Save Button
 private void SaveBtn(object sender, EventArgs e)
 {
     MessageBox.Show(
         GetSetSettingsData.SaveSettings(numUDWorkRecovery.Value, numUDBreakRecovery.Value, numUDWorkSmart.Value, numUDBreakSmart.Value,
                                         numUDWorkProgress.Value, numUDBreakProgress.Value, numUDRound.Value, checkBoxAudioAlert.Checked, checkBoxSimpleView.Checked, checkBoxAutoStart.Checked, checkBoxBreakStretches.Checked), "Worker Ant Settings", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
 }
Exemplo n.º 2
0
        // Settings window load
        private void SettingsUILoad(object sender, EventArgs e)
        {
            // load lap packages
            ((numUDWorkRecovery.Value, numUDBreakRecovery.Value), (numUDWorkSmart.Value, numUDBreakSmart.Value), (numUDWorkProgress.Value,
                                                                                                                  numUDBreakProgress.Value), numUDRound.Value) = GetSetSettingsData.GetSattingsLapPackages();

            // load user preferred
            (checkBoxAudioAlert.Checked, checkBoxSimpleView.Checked, checkBoxAutoStart.Checked, checkBoxBreakStretches.Checked) = GetSetSettingsData.GetSettingsUserPreferences();
        }
Exemplo n.º 3
0
 //------------------------------------------------------------------------- Button
 // Default Button
 private void DefaultBtn(object sender, EventArgs e)
 {
     GetSetSettingsData.SetSettingsToDefault();
     SettingsUILoad(null, null);
     checkBoxAutoStart.Checked = true;
 }