Beispiel #1
0
 private static void InitOptions()
 {
     try
     {
         var data = _dataLoader.GetDataTable(OptionName.QuestionLocation).Rows;
         QuestionLocation               = new Point(Convert.ToInt32(data[0][0]), Convert.ToInt32(data[1][0]));
         data                           = _dataLoader.GetDataTable(OptionName.SpaceBetweenAnswers).Rows;
         SpaceBetweenAnswers            = new Point(Convert.ToInt32(data[0][0]), Convert.ToInt32(data[1][0]));
         data                           = _dataLoader.GetDataTable(OptionName.SpaceBetweenQuestionAndAnswers).Rows;
         SpaceBetweenQuestionAndAnswers = new Point(Convert.ToInt32(data[0][0]), Convert.ToInt32(data[1][0]));
         data                           = _dataLoader.GetDataTable(OptionName.HaveBackWard).Rows;
         HaveBackward                   = Convert.ToBoolean(data[0][0]);
         data                           = _dataLoader.GetDataTable(OptionName.HaveQuestionsHistory).Rows;
         HaveQuestionsHistory           = Convert.ToBoolean(data[0][0]);
         data                           = _dataLoader.GetDataTable(OptionName.HavePicture).Rows;
         HavePictures                   = Convert.ToBoolean(data[0][0]);
         data                           = _dataLoader.GetDataTable(OptionName.PictureLocation).Rows;
         PictureLocation                = new Point(Convert.ToInt32(data[0][0]), Convert.ToInt32(data[1][0]));
         data                           = _dataLoader.GetDataTable(OptionName.PictureSize).Rows;
         PictureSize                    = new Size(Convert.ToInt32(data[0][0]), Convert.ToInt32(data[1][0]));
         data                           = _dataLoader.GetDataTable(OptionName.CanMoveWithoutAnswer).Rows;
         CanMoveWithoutAnswer           = Convert.ToBoolean(data[0][0]);
         data                           = _dataLoader.GetDataTable(OptionName.HaveFactorsHistory).Rows;
         HaveFactorsHistory             = Convert.ToBoolean(data[0][0]);
     }
     catch (Exception exp)
     {
         throw new Exception("Options.InitOptions " + exp);
     }
 }
Beispiel #2
0
 public static DataTable GetInterviewThemes()
 {
     return(_dataLoader.GetDataTable(GetDataType.Theme));
 }