浏览代码

上传成功永久置灰 125% 屏幕适应

tags/录制修改前
zhangxueyang 4 年前
父节点
当前提交
5b3aa2f410

+ 2
- 2
XHWK.Model/Properties/AssemblyInfo.cs 查看文件

@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
31 31
 //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
32 32
 //通过使用 "*",如下所示:
33 33
 // [assembly: AssemblyVersion("1.0.*")]
34
-[assembly: AssemblyVersion("1.1.0.0")]
35
-[assembly: AssemblyFileVersion("1.1.0.0")]
34
+[assembly: AssemblyVersion("1.1.1.0")]
35
+[assembly: AssemblyFileVersion("1.1.1.0")]

+ 2
- 2
XHWK.WKTool/App.config 查看文件

@@ -31,7 +31,7 @@
31 31
     <!--上传每片大小 Mb-->
32 32
     <add key="UploadSliceLen" value="1"/>
33 33
     <!--版本号-->
34
-    <add key="VersionCode" value="11"/>
35
-    <add key="VersionName" value="1.1.0"/>
34
+    <add key="VersionCode" value="12"/>
35
+    <add key="VersionName" value="1.1.1"/>
36 36
   </appSettings>
37 37
 </configuration>

+ 16
- 0
XHWK.WKTool/DAL/DAL_Upload.cs 查看文件

@@ -89,6 +89,22 @@ namespace XHWK.WKTool.DAL
89 89
                     if (resultObj.code == 0 && resultObj.obj != null)
90 90
                     {
91 91
                         APP.ResourceAddTwo = resultObj.obj;
92
+                        foreach (Model_WKData Vdata in APP.WKDataList)
93
+                        {
94
+                            if (Vdata.VideoList == null)
95
+                            {
96
+                                continue;
97
+                            }
98
+
99
+                            foreach (Model_Video videoinfo in Vdata.VideoList)
100
+                            {
101
+                                if (videoinfo.FileGuid == FileCode)
102
+                                {
103
+                                    videoinfo.IsUpload = true;
104
+                                    break;
105
+                                }
106
+                            }
107
+                        }
92 108
                         return true;
93 109
                     }
94 110
                     else

+ 15
- 16
XHWK.WKTool/XHMicroLessonSystemWindow.xaml 查看文件

@@ -69,8 +69,8 @@
69 69
                                 Cursor="Hand"
70 70
                         BorderThickness="0" Click="BtnModify_Click">
71 71
                             <Grid>
72
-                                <Image Source="./Images/fileDirectory3.png" Margin="6,6,6,6" Height="20" Visibility="{Binding vis}"/>
73
-                                <Image Source="./Images/fileDirectory4.png" Margin="6,6,6,6" Height="20" Visibility="{Binding cos}"/>
72
+                                <Image Source="./Images/fileDirectory3.png" Margin="6,6,6,6" Height="20" Visibility="{Binding Visi}"/>
73
+                                <Image Source="./Images/fileDirectory4.png" Margin="6,6,6,6" Height="20" Visibility="{Binding Coll}"/>
74 74
                             </Grid>
75 75
                         </Button>
76 76
                     </StackPanel>
@@ -105,24 +105,24 @@
105 105
                                 Cursor="Hand"
106 106
                         BorderThickness="0" Click="BtnPlay_Click">
107 107
                             <Grid>
108
-                                <Image Source="./Images/fileDirectory1.png" Margin="10" Height="20" Visibility="{Binding vis}"/>
109
-                                <Image Source="./Images/fileDirectory2.png" Margin="10"  Height="20" Visibility="{Binding cos}"/>
108
+                                <Image Source="./Images/fileDirectory1.png" Margin="10" Height="20" Visibility="{Binding Visi}"/>
109
+                                <Image Source="./Images/fileDirectory2.png" Margin="10"  Height="20" Visibility="{Binding Coll}"/>
110 110
                             </Grid>
111 111
                         </Button>
112 112
                         <Button x:Name="btnUpload" Background="Transparent"
113 113
                                 Cursor="Hand"
114 114
                         BorderThickness="0" Click="BtnUploads_Click">
115 115
                             <Grid>
116
-                                <Image Source="./Images/fileDirectory7.png" Margin="6,6,6,6" Height="20" Visibility="{Binding vis}"/>
117
-                                <Image Source="./Images/fileDirectory8.png" Margin="6,6,6,6" Height="20" Visibility="{Binding cos}"/>
116
+                                <Image Source="./Images/fileDirectory7.png" Margin="6,6,6,6" Height="20" Visibility="{Binding Visi}"/>
117
+                                <Image Source="./Images/fileDirectory8.png" Margin="6,6,6,6" Height="20" Visibility="{Binding Coll}"/>
118 118
                             </Grid>
119 119
                         </Button>
120 120
                         <Button x:Name="btnDelete" Background="Transparent"
121 121
                                 Cursor="Hand"
122 122
                         BorderThickness="0" Click="BtnDelete_Click">
123 123
                             <Grid>
124
-                                <Image Source="./Images/fileDirectory5.png" Margin="6,6,6,6" Height="20" Visibility="{Binding vis}"/>
125
-                                <Image Source="./Images/fileDirectory6.png" Margin="6,6,6,6" Height="20" Visibility="{Binding cos}"/>
124
+                                <Image Source="./Images/fileDirectory5.png" Margin="6,6,6,6" Height="20" Visibility="{Binding Visi}"/>
125
+                                <Image Source="./Images/fileDirectory6.png" Margin="6,6,6,6" Height="20" Visibility="{Binding Coll}"/>
126 126
                             </Grid>
127 127
                         </Button>
128 128
                     </StackPanel>
@@ -139,14 +139,13 @@
139 139
         </RadialGradientBrush>
140 140
     </Window.BorderBrush>
141 141
 
142
-
143
-    <Grid x:Name="GridContent" Height="1030" Width="1276" >
144
-
142
+    <Viewbox>
143
+    <Grid x:Name="GridContent" Height="1030" Width="1276">
145 144
         <!--分3行-->
146 145
         <Grid.RowDefinitions>
147
-            <RowDefinition Height="10*"/>
148
-            <RowDefinition Height="85*"/>
149
-            <RowDefinition Height="5*"/>
146
+            <RowDefinition Height="100"/>
147
+            <RowDefinition Height="*"/>
148
+            <RowDefinition Height="50"/>
150 149
         </Grid.RowDefinitions>
151 150
         <Grid Grid.Row="0" Background="#2D8CF0" MouseLeftButtonDown="Window_MouseLeftButtonDown" Margin="0,0,0,0" MinHeight="100px">
152 151
             <Grid.RowDefinitions>
@@ -401,7 +400,7 @@
401 400
             </StackPanel>
402 401
 
403 402
 
404
-        <!--接口地址-->
403
+            <!--接口地址-->
405 404
             <StackPanel Grid.Row="3" Orientation="Horizontal" Margin="30,0,0,0">
406 405
                 <TextBlock Text="接口地址" FontSize="16" Foreground="#2D8CF0" Width="80" Padding="0,25,0,0" Margin="10,0,0,0"/>
407 406
                 <TextBlock Text="http://" FontSize="16" Padding="0,25,5,0"/>
@@ -610,5 +609,5 @@
610 609
         </Grid>
611 610
 
612 611
     </Grid>
613
-
612
+    </Viewbox>
614 613
 </Window>

+ 11
- 4
XHWK.WKTool/XHMicroLessonSystemWindow.xaml.cs 查看文件

@@ -1291,6 +1291,11 @@ namespace XHWK.WKTool
1291 1291
                     vis = "Collapsed";
1292 1292
                     cos = "Visible";
1293 1293
                 }
1294
+                //if(i==1)//ceshi
1295
+                //{
1296
+                //    vis = "Visible";
1297
+                //    cos = "Collapsed";
1298
+                //}
1294 1299
                 if (i <= 16)
1295 1300
                 {
1296 1301
                     pageData.menuList.Add(new FileDirectoryModel()
@@ -1415,6 +1420,10 @@ namespace XHWK.WKTool
1415 1420
 
1416 1421
                     if (dAL_Upload.UploadVideo(pageData.menuList[i].FileGuid, out string ErrMessage))
1417 1422
                     {
1423
+                        pageData.menuList[i].Visi = "Visible";
1424
+                        pageData.menuList[i].Coll = "Collapsed";
1425
+
1426
+                        DataContext = pageData;
1418 1427
                         //MessageWindow.Show("视频上传服务器成功!");
1419 1428
                         if (APP.W_UploadWindow == null)
1420 1429
                         {
@@ -1423,13 +1432,11 @@ namespace XHWK.WKTool
1423 1432
                                 Owner = this
1424 1433
                             };
1425 1434
                         }
1435
+                      
1426 1436
                         //long size = Convert.ToInt64(FileToolsCommon.GetFileSizeByMB(pageData.menuList[i].FilePath));
1427 1437
                         APP.W_UploadWindow.Initialize(pageData.menuList[i].VideoName, pageData.menuList[i].VideoSizes, pageData.menuList[i].VideoType, pageData.menuList[i].FileGuid);
1428 1438
                         APP.W_UploadWindow.ShowDialog();
1429
-                        pageData.menuList[i].Visi = "Collapsed";
1430
-                        pageData.menuList[i].Coll = "Visible";
1431
-
1432
-                        DataContext = pageData;
1439
+                    
1433 1440
 
1434 1441
                     }
1435 1442
                     else

正在加载...
取消
保存