Beispiel #1
0
        void SaveFormConfiguration(object sender, FormClosedEventArgs e)
        {
            ProgramConfiguraton.SaveFormParams(this, ConfigFormOption.Location | ConfigFormOption.Size);

            LocalConfiguration.SaveControlCustomParameter(nUDQuestionCount, "Value", nUDQuestionCount.Value.ToString());
            LocalConfiguration.SaveControlCustomParameter(nUDWordsInPair, "Value", nUDWordsInPair.Value.ToString());
            LocalConfiguration.SaveControlCustomParameter(nUDTimeForWord, "Value", nUDTimeForWord.Value.ToString());

            LocalConfiguration.SaveControlCustomParameter(cBTimeForWord, "Checked", cBTimeForWord.Checked ? "1" : "0");

            LocalConfiguration.SaveControlCustomParameter(cBCounter, "Checked", cBCounter.Checked ? "1" : "0");
            LocalConfiguration.SaveControlCustomParameter(cBRandomPosition, "Checked", cBRandomPosition.Checked ? "1" : "0");
            LocalConfiguration.SaveControlCustomParameter(cBWithNumber, "Checked", cBWithNumber.Checked ? "1" : "0");

            if (cBDictionary.SelectedItem != null)
            {
                LocalConfiguration.SaveControlCustomParameter(cBDictionary, "SelectedItem", cBDictionary.SelectedItem.ToString());
            }

            ProgramConfiguraton.SaveXmlConfig();
        }
Beispiel #2
0
        void SaveFormConfiguration(object sender, FormClosedEventArgs e)
        {
            ProgramConfiguraton.SaveFormParams(this, ConfigFormOption.Location);
            LocalConfiguration.SaveControlCustomParameter(nUDVisibleTime, "Value", nUDVisibleTime.Value.ToString());
            LocalConfiguration.SaveControlCustomParameter(nUDTimeForAnswer, "Value", nUDTimeForAnswer.Value.ToString());

            LocalConfiguration.SaveControlCustomParameter(nUDLeft, "Value", nUDLeft.Value.ToString());
            LocalConfiguration.SaveControlCustomParameter(nUDRight, "Value", nUDRight.Value.ToString());

            LocalConfiguration.SaveControlCustomParameter(cBVisionTime, "Checked", cBVisionTime.Checked ? "1" : "0");
            LocalConfiguration.SaveControlCustomParameter(cBTimeForAnswer, "Checked", cBTimeForAnswer.Checked ? "1" : "0");

            LocalConfiguration.SaveControlCustomParameter(rBDayOfWeek, "Checked", rBDayOfWeek.Checked ? "1" : "0");
            LocalConfiguration.SaveControlCustomParameter(rBYear, "Checked", rBYear.Checked ? "1" : "0");
            LocalConfiguration.SaveControlCustomParameter(rBYear12, "Checked", rBYear12.Checked ? "1" : "0");
            LocalConfiguration.SaveControlCustomParameter(rBMonth, "Checked", rBMonth.Checked ? "1" : "0");

            train.SaveExeruciseSerie();

            ProgramConfiguraton.SaveXmlConfig();
        }
Beispiel #3
0
        void SaveFormConfiguration(object sender, FormClosedEventArgs e)
        {
            ProgramConfiguraton.SaveFormParams(this, ConfigFormOption.Location);
            LocalConfiguration.SaveControlCustomParameter(nUDVisibleTime, "Value", nUDVisibleTime.Value.ToString());
            LocalConfiguration.SaveControlCustomParameter(nUDTimeForAnswer, "Value", nUDTimeForAnswer.Value.ToString());

            LocalConfiguration.SaveControlCustomParameter(cBVisionTime, "Checked", cBVisionTime.Checked ? "1" : "0");
            LocalConfiguration.SaveControlCustomParameter(cBTimeForAnswer, "Checked", cBTimeForAnswer.Checked ? "1" : "0");

            LocalConfiguration.SaveControlCustomParameter(rbNumber, "Checked", rbNumber.Checked ? "1" : "0");
            LocalConfiguration.SaveControlCustomParameter(rbSum, "Checked", rbSum.Checked ? "1" : "0");

            if (cBDictionary.SelectedItem != null)
            {
                LocalConfiguration.SaveControlCustomParameter(cBDictionary, "SelectedItem", cBDictionary.SelectedItem.ToString());
            }

            train.SaveExeruciseSerie();

            ProgramConfiguraton.SaveXmlConfig();
        }
Beispiel #4
0
        private void SaveFormConfiguration(object sender, FormClosedEventArgs e)
        {
            ProgramConfiguraton.SaveFormParams(this, ConfigFormOption.Location);

            LocalConfiguration.SaveListCheckedItems(this, netCheckedListBox.ListBox);

            LocalConfiguration.SaveControlCustomParameter(cBTestType, "SelectedIndex", cBTestType.SelectedIndex.ToString());
            LocalConfiguration.SaveControlCustomParameter(chbValueRange, "Checked", chbValueRange.Checked ? "1" : "0");

            LocalConfiguration.SaveControlCustomParameter(rBNumber, "Checked", rBNumber.Checked ? "1" : "0");
            LocalConfiguration.SaveControlCustomParameter(rBCalculation, "Checked", rBCalculation.Checked ? "1" : "0");

            LocalConfiguration.SaveControlCustomParameter(nUDLeft, "Value", nUDLeft.Value.ToString());
            LocalConfiguration.SaveControlCustomParameter(nUDRight, "Value", nUDRight.Value.ToString());

            LocalConfiguration.SaveControlCustomParameter(chBVisionTime, "Checked", chBVisionTime.Checked ? "1" : "0");
            LocalConfiguration.SaveControlCustomParameter(nUDVisibleTime, "Value", nUDVisibleTime.Value.ToString());

            train.SaveExeruciseSerie();

            ProgramConfiguraton.SaveXmlConfig();
        }
Beispiel #5
0
        void SaveFormConfiguration(object sender, FormClosedEventArgs e)
        {
            ProgramConfiguraton.SaveFormParams(this, ConfigFormOption.Location);
            LocalConfiguration.SaveControlCustomParameter(nUDSymbolsCount, "Value", nUDSymbolsCount.Value.ToString());
            LocalConfiguration.SaveControlCustomParameter(nUDWordsCount, "Value", nUDWordsCount.Value.ToString());
            LocalConfiguration.SaveControlCustomParameter(nUDVisibleTime, "Value", nUDVisibleTime.Value.ToString());

            LocalConfiguration.SaveControlCustomParameter(rbSymbols, "Checked", rbSymbols.Checked ? "1" : "0");
            LocalConfiguration.SaveControlCustomParameter(rbDictionary, "Checked", rbDictionary.Checked ? "1" : "0");
            LocalConfiguration.SaveControlCustomParameter(cbRandomSymbols, "Checked", cbRandomSymbols.Checked ? "1" : "0");

            LocalConfiguration.SaveControlCustomParameter(cBColor, "Checked", cBColor.Checked ? "1" : "0");

            if (cBDictionary.SelectedItem != null)
            {
                LocalConfiguration.SaveControlCustomParameter(cBDictionary, "SelectedItem", cBDictionary.SelectedItem.ToString());
            }

            train.SaveExeruciseSerie();

            ProgramConfiguraton.SaveXmlConfig();
        }
        void SaveFormConfiguration(object sender, FormClosedEventArgs e)
        {
            ProgramConfiguraton.SaveFormParams(this, ConfigFormOption.Location);

            LocalConfiguration.SaveControlCustomParameter(cbTimer, "SelectedIndex", cbTimer.SelectedIndex.ToString());

            foreach (Control item in gBTimers.Controls)
            {
                if (item is DateTimePicker)
                {
                    DateTimePicker dtp = item as DateTimePicker;

                    TimeSpan span = dtp.Value - dtp.Value.Date;

                    LocalConfiguration.SaveControlCustomParameter(dtp, "Time", span.TotalSeconds.ToString());
                }
            }

            LocalConfiguration.SaveControlCustomParameter(chBWithInterruption, "Checked", chBWithInterruption.Checked ? "1" : "0");

            train.SaveExeruciseSerie();

            ProgramConfiguraton.SaveXmlConfig();
        }