浏览代码

Название теста отображается корректно

Fox 5 月之前
父节点
当前提交
6b85171192
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      Model1.edmx.diagram
  2. 1 0
      Pages/TestPage.xaml.cs

+ 1 - 1
Model1.edmx.diagram

@@ -4,7 +4,7 @@
   <edmx:Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
     <!-- Diagram content (shape and connector positions) -->
     <edmx:Diagrams>
-      <Diagram DiagramId="4238b77865c547418f14adb7d91cfa13" Name="Diagram1">
+      <Diagram DiagramId="4238b77865c547418f14adb7d91cfa13" Name="Diagram1" ZoomLevel="74">
         <EntityTypeShape EntityType="PsychoTestsModel.Answers" Width="1.5" PointX="3" PointY="0.75" IsExpanded="true" />
         <EntityTypeShape EntityType="PsychoTestsModel.Categories" Width="1.5" PointX="0.75" PointY="4.75" IsExpanded="true" />
         <EntityTypeShape EntityType="PsychoTestsModel.Questions" Width="1.5" PointX="5.25" PointY="4.5" IsExpanded="true" />

+ 1 - 0
Pages/TestPage.xaml.cs

@@ -32,6 +32,7 @@ namespace PsychoTest.Pages
 
             questions = DB.Questions.Where(x=>x.Id_test==id_test).ToList();
             QuestionContent.Text = questions[n].Content;
+            NameOfTest.Text = DB.Tests.Where(x => x.Test_id == id_test).Select(x=>x.Test_name).FirstOrDefault();
             test_id = id_test; 
             user_id = id_user;
         }