Преглед на файлове

Merge remote-tracking branch 'origin/zhangxueyang' into zyy

tags/录制修改前
耀 преди 4 години
родител
ревизия
c5f6171209
променени са 2 файла, в които са добавени 29 реда и са изтрити 2 реда
  1. 17
    1
      XHWK.WKTool/LoginWindow.xaml
  2. 12
    1
      XHWK.WKTool/XHMicroLessonSystemWindow.xaml.cs

+ 17
- 1
XHWK.WKTool/LoginWindow.xaml Целия файл

@@ -55,6 +55,22 @@
55 55
                 </Setter.Value>
56 56
             </Setter>
57 57
         </Style>
58
+        <Style x:Key="NoMouseOverButtonStyle" TargetType="{x:Type Button}">
59
+            <Setter Property="BorderThickness" Value="1"/>
60
+            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
61
+            <Setter Property="HorizontalContentAlignment" Value="Center"/>
62
+            <Setter Property="VerticalContentAlignment" Value="Center"/>
63
+            <Setter Property="Padding" Value="1"/>
64
+            <Setter Property="Template">
65
+                <Setter.Value>
66
+                    <ControlTemplate TargetType="{x:Type Button}">
67
+                        <Border x:Name="Chrome" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
68
+                            <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
69
+                        </Border>
70
+                    </ControlTemplate>
71
+                </Setter.Value>
72
+            </Setter>
73
+        </Style>
58 74
     </Window.Resources>
59 75
     <Grid Background="#FFFFFF">
60 76
         <!--分5行-->
@@ -69,7 +85,7 @@
69 85
         <Border Grid.Row="0" Background="#2D8CF0">
70 86
             <Grid>
71 87
                 <TextBlock Text="登录星火微课系统" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
72
-                <Button  Cursor="Hand" 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"/>
88
+                <Button  Cursor="Hand"  Grid.Row="0" x:Name="btnDown" Content="×" Background="Transparent" Foreground="#FFFFFF" FontSize="25" Padding="10,0,10,0" HorizontalAlignment="Right" Style="{StaticResource NoMouseOverButtonStyle}" Click="BtnDown_Click"/>
73 89
             </Grid>
74 90
         </Border>
75 91
         <!--第二行 登陆 账号-->

+ 12
- 1
XHWK.WKTool/XHMicroLessonSystemWindow.xaml.cs Целия файл

@@ -3459,7 +3459,18 @@ namespace XHWK.WKTool
3459 3459
         /// <param name="e"></param>
3460 3460
         private void BtnLoginType_Click(object sender, RoutedEventArgs e)
3461 3461
         {
3462
-            Login();
3462
+            if ("未登录".Equals(txbLoginType.Text))
3463
+            {
3464
+                Login();
3465
+            }
3466
+            else
3467
+            {
3468
+                MessageBoxResult dr = MessageWindow.Show("确定退出登陆?", "提示", MessageBoxButton.OKCancel);
3469
+                if (dr == MessageBoxResult.OK)
3470
+                {
3471
+                    Login();
3472
+                }
3473
+            }
3463 3474
         }
3464 3475
         /// <summary>
3465 3476
         /// 登陆

Loading…
Отказ
Запис