Explorar el Código

zhao:增加用户模型

tags/录制修改前
耀 hace 4 años
padre
commit
da90e2c048

+ 18
- 3
XHWK.Model/Model_UserInfo.cs Ver fichero

@@ -1,8 +1,23 @@
1
-namespace XHWK.Model
1
+using System.Collections.Generic;
2
+
3
+namespace XHWK.Model
2 4
 {
3 5
     public class Model_UserInfo
4 6
     {
5
-        string _wkName;
6
-        public string WkName { get => _wkName; set => _wkName = value; }
7
+        private string _userName;
8
+        private string _name;
9
+        private List<Model_WKData> _wkdata;
10
+        /// <summary>
11
+        /// 用户名
12
+        /// </summary>
13
+        public string UserName { get => _userName; set => _userName = value; }
14
+        /// <summary>
15
+        /// 姓名
16
+        /// </summary>
17
+        public string Name { get => _name; set => _name = value; }
18
+        /// <summary>
19
+        /// 微课列表信息
20
+        /// </summary>
21
+        public List<Model_WKData> Wkdata { get => _wkdata; set => _wkdata = value; }
7 22
     }
8 23
 }

+ 5
- 0
XHWK.Model/Model_WKData.cs Ver fichero

@@ -7,6 +7,7 @@ namespace XHWK.Model
7 7
         private string _wkName;
8 8
         private List<Model_Video> _videoList;
9 9
         private string _wkPath;
10
+        private string _wkDateTime;
10 11
         /// <summary>
11 12
         /// 微课名
12 13
         /// </summary>
@@ -19,5 +20,9 @@ namespace XHWK.Model
19 20
         /// 微课路径
20 21
         /// </summary>
21 22
         public string WkPath { get => _wkPath; set => _wkPath = value; }
23
+        /// <summary>
24
+        /// 微课时间
25
+        /// </summary>
26
+        public string WkDateTime { get => _wkDateTime; set => _wkDateTime = value; }
22 27
     }
23 28
 }

+ 2
- 2
XHWK.WKTool/LoginWindow.xaml Ver fichero

@@ -23,7 +23,7 @@
23 23
             <Border Grid.Row="0" Background="#2D8CF0">
24 24
                 <Grid>
25 25
                     <TextBlock Text="登录星火微课系统" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
26
-                    <Button Grid.Row="0" x:Name="btnDown" Content="×" Foreground="#FFFFFF" FontSize="25" Padding="10,0,10,0" HorizontalAlignment="Right" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="btnDown_Click"/>
26
+                    <Button Grid.Row="0" x:Name="btnDown" Content="×" Foreground="#FFFFFF" FontSize="25" Padding="10,0,10,0" HorizontalAlignment="Right" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnDown_Click"/>
27 27
                 </Grid>
28 28
             </Border>
29 29
             <!--第二行 登陆 账号-->
@@ -63,7 +63,7 @@
63 63
             </StackPanel>
64 64
             
65 65
             <!--第五行 开始按钮-->
66
-            <Button Grid.Row="4" x:Name="btnStart" Content="登录" FontSize="18" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="418" Height="43" Margin="10,0,10,0" Click="btnStart_Click">
66
+            <Button Grid.Row="4" x:Name="btnStart" Content="登录" FontSize="18" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="418" Height="43" Margin="10,0,10,0" Click="BtnStart_Click">
67 67
                 <Button.Template>
68 68
                     <ControlTemplate TargetType="{x:Type Button}">
69 69
                         <Border

+ 2
- 2
XHWK.WKTool/LoginWindow.xaml.cs Ver fichero

@@ -16,7 +16,7 @@ namespace XHWK.WKTool
16 16
         /// </summary>
17 17
         /// <param name="sender"></param>
18 18
         /// <param name="e"></param>
19
-        private void btnDown_Click(object sender, RoutedEventArgs e)
19
+        private void BtnDown_Click(object sender, RoutedEventArgs e)
20 20
         {
21 21
 
22 22
         }
@@ -25,7 +25,7 @@ namespace XHWK.WKTool
25 25
         /// </summary>
26 26
         /// <param name="sender"></param>
27 27
         /// <param name="e"></param>
28
-        private void btnStart_Click(object sender, RoutedEventArgs e)
28
+        private void BtnStart_Click(object sender, RoutedEventArgs e)
29 29
         {
30 30
 
31 31
         }

Loading…
Cancelar
Guardar