Beispiel #1
0
 public static void setSettings(SettingsData settingsData)
 {
     checkQuestion  = settingsData.checkQuestion;
     ShowAnswers    = settingsData.ShowAnswers;
     ShowMenuStrip  = settingsData.ShowMenuStrip;
     textQuestion   = settingsData.textQuestion;
     countQuestions = settingsData.countQuestions;
     radioQuestion  = settingsData.radioQuestion;
     pathContent    = settingsData.pathContent;
     DBUser         = settingsData.DBUser;
     DBPassword     = settingsData.DBPassword;
     DBServer       = settingsData.DBServer;
     DBName         = settingsData.DBName;
 }
Beispiel #2
0
        public static SettingsData getSettings()
        {
            SettingsData settingsData = new SettingsData
            {
                checkQuestion  = checkQuestion,
                ShowAnswers    = ShowAnswers,
                ShowMenuStrip  = ShowMenuStrip,
                textQuestion   = textQuestion,
                countQuestions = countQuestions,
                radioQuestion  = radioQuestion,
                pathContent    = pathContent,
                DBUser         = DBUser,
                DBPassword     = DBPassword,
                DBServer       = DBServer,
                DBName         = DBName
            };

            return(settingsData);
        }