|
@@ -507,7 +507,7 @@ namespace WpfTest1
|
|
|
oneOption.Height = 30;
|
|
|
oneOption.HorizontalAlignment = HorizontalAlignment.Left;
|
|
|
oneOption.VerticalAlignment = VerticalAlignment.Top;
|
|
|
- oneOption.Margin = new Thickness(i/5*200, i%5*40, 0, 0);
|
|
|
+ oneOption.Margin = new Thickness(i/6*300, i%6*30, 0, 0);
|
|
|
if(filterUserSelection[currentIndex-1].a_id == filterQuestionaire[currentIndex - 1].answers[i].a_id)
|
|
|
oneOption.IsChecked = true;
|
|
|
else
|
|
@@ -729,17 +729,17 @@ namespace WpfTest1
|
|
|
oneOption.Height = 30;
|
|
|
oneOption.HorizontalAlignment = HorizontalAlignment.Left;
|
|
|
oneOption.VerticalAlignment = VerticalAlignment.Top;
|
|
|
- oneOption.Margin = new Thickness(i / 5 * 200, i % 5 * 40, 0, 0);
|
|
|
+ oneOption.Margin = new Thickness(i / 4 * 280, i % 4 * 30, 0, 0);
|
|
|
if (evaluationUserSelection[currentIndex - 1].a_id == evaluationQuestionaire[currentIndex - 1].answers[i].a_id)
|
|
|
oneOption.IsChecked = true;
|
|
|
else
|
|
|
oneOption.IsChecked = false;
|
|
|
oneOption.Content = String.Format("[选项{0}]:{1}", i + 1, evaluationQuestionaire[currentIndex - 1].answers[i].a_content);
|
|
|
- oneOption.Checked += radioButtonEvaluation_Checked;
|
|
|
- oneOption.GroupName = "evaluationOption";
|
|
|
- oneOption.FontSize = 18;
|
|
|
- oneOption.Name = "rbe" + evaluationQuestionaire[currentIndex - 1].answers[i].a_id.ToString();
|
|
|
- gridEvaluationSelection.Children.Add(oneOption);
|
|
|
+ oneOption.Checked += radioButtonEvaluation_Checked;
|
|
|
+ oneOption.GroupName = "evaluationOption";
|
|
|
+ oneOption.FontSize = 18;
|
|
|
+ oneOption.Name = "rbe" + evaluationQuestionaire[currentIndex - 1].answers[i].a_id.ToString();
|
|
|
+ gridEvaluationSelection.Children.Add(oneOption);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1437,5 +1437,16 @@ namespace WpfTest1
|
|
|
#endregion
|
|
|
|
|
|
#endregion
|
|
|
+
|
|
|
+ #region 测试功能
|
|
|
+ private void buttonTest1_Click(object sender, RoutedEventArgs e)
|
|
|
+ {
|
|
|
+ int res_flag = SQLiteModel.loopInsertAnswers();
|
|
|
+ if(res_flag == 0)
|
|
|
+ {
|
|
|
+ MessageBox.Show("操作成功");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ #endregion
|
|
|
}
|
|
|
}
|