Browse Source

zhao:增加用户模型

tags/录制修改前
耀 4 years ago
parent
commit
da90e2c048

+ 18
- 3
XHWK.Model/Model_UserInfo.cs View File

1
-namespace XHWK.Model
1
+using System.Collections.Generic;
2
+
3
+namespace XHWK.Model
2
 {
4
 {
3
     public class Model_UserInfo
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 View File

7
         private string _wkName;
7
         private string _wkName;
8
         private List<Model_Video> _videoList;
8
         private List<Model_Video> _videoList;
9
         private string _wkPath;
9
         private string _wkPath;
10
+        private string _wkDateTime;
10
         /// <summary>
11
         /// <summary>
11
         /// 微课名
12
         /// 微课名
12
         /// </summary>
13
         /// </summary>
19
         /// 微课路径
20
         /// 微课路径
20
         /// </summary>
21
         /// </summary>
21
         public string WkPath { get => _wkPath; set => _wkPath = value; }
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 View File

23
             <Border Grid.Row="0" Background="#2D8CF0">
23
             <Border Grid.Row="0" Background="#2D8CF0">
24
                 <Grid>
24
                 <Grid>
25
                     <TextBlock Text="登录星火微课系统" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
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
                 </Grid>
27
                 </Grid>
28
             </Border>
28
             </Border>
29
             <!--第二行 登陆 账号-->
29
             <!--第二行 登陆 账号-->
63
             </StackPanel>
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
                 <Button.Template>
67
                 <Button.Template>
68
                     <ControlTemplate TargetType="{x:Type Button}">
68
                     <ControlTemplate TargetType="{x:Type Button}">
69
                         <Border
69
                         <Border

+ 2
- 2
XHWK.WKTool/LoginWindow.xaml.cs View File

16
         /// </summary>
16
         /// </summary>
17
         /// <param name="sender"></param>
17
         /// <param name="sender"></param>
18
         /// <param name="e"></param>
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
         /// </summary>
25
         /// </summary>
26
         /// <param name="sender"></param>
26
         /// <param name="sender"></param>
27
         /// <param name="e"></param>
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…
Cancel
Save