Browse Source

Merge branch 'master' of http://git.xhkjedu.com/zhaoyaoyao/XHPZPC

# Conflicts:
#	XHPZ.Desktop/MainWindow.xaml
master
zhangxueyang 3 years ago
parent
commit
42752b94e7

BIN
XHPZ.Desktop/Images/Toobar5.png View File


BIN
XHPZ.Desktop/Images/microLessonSystem_19.png View File


+ 23
- 1
XHPZ.Desktop/MainWindow.xaml View File

@@ -5,12 +5,34 @@
5 5
         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6 6
         xmlns:local="clr-namespace:XHPZ.Desktop"
7 7
         mc:Ignorable="d"
8
+<<<<<<< HEAD
8 9
         Title="智慧批注" Height="300" Width="300">
10
+=======
11
+        Title="MainWindow" 
12
+    WindowStyle="None" AllowsTransparency="True"    WindowState="Normal"
13
+    ShowInTaskbar="False"  Topmost="True" ResizeMode="NoResize" 
14
+        d:DesignHeight="250" Width="500" Height="250"  MouseMove="Window_MouseMove"  BorderThickness="7">
15
+    <Window.Effect>
16
+        <DropShadowEffect BlurRadius="10" Color="#bababa" Direction="80" ShadowDepth="0"/>
17
+    </Window.Effect>
18
+>>>>>>> c3ffa44dd9c0e70fe134cf74c328dc36897b6b64
9 19
     <Grid>
10
-        <TextBlock Text="欢迎使用批注!" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="28"/>
20
+        <TextBlock Text="欢迎使用星火批注!" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" Margin="0,0,0,35"/>
21
+        <TextBlock Text="使用点阵笔时自动批注,右键退出批注。" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" Margin="0,35,0,0"/>
11 22
         <StackPanel Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Right"  Margin="10">
12 23
             <TextBlock Text="设备状态:" FontSize="18"/>
13 24
             <TextBlock x:Name="txbType" Text="未连接" FontSize="18"/>
14 25
         </StackPanel>
26
+        <Grid Grid.Row="0" Margin="0,0,0,190" Background="#FF00BAF4">
27
+            <Image Source="/Images/144.png" RenderTransformOrigin="0.1,0.61" HorizontalAlignment="Left" Margin="5,5,0,5" />
28
+            <Label x:Name="lblTitle" Content="星火批注" HorizontalAlignment="Left" Margin="45,7,0,0" VerticalAlignment="Top" Foreground="#FFFFFFFF" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" FontSize="20" FontWeight="Bold"/>
29
+            <Button Cursor="Hand" x:Name="BtnClose" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="30" HorizontalAlignment="Right" Margin="0,0,10,0" Click="BtnClose_Click"  >
30
+                <Image Source="./Images/Toobar5.png"/>
31
+            </Button>
32
+            <Button Cursor="Hand" x:Name="BtnMin" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="30" HorizontalAlignment="Right" Margin="0,0,50,0" Height="30" Click="BtnMin_Click"  >
33
+                <Image Source="./Images/microLessonSystem_19.png"/>
34
+            </Button>
35
+
36
+        </Grid>
15 37
     </Grid>
16 38
 </Window>

+ 30
- 0
XHPZ.Desktop/MainWindow.xaml.cs View File

@@ -50,6 +50,36 @@ namespace XHPZ.Desktop
50 50
             APP.W_PracticeWindow.Initialize();
51 51
             APP.W_PracticeWindow.Show();
52 52
         }
53
+
54
+        private void Window_MouseMove(object sender, MouseEventArgs e)
55
+        {
56
+            if (e.LeftButton == MouseButtonState.Pressed)
57
+            {
58
+                //this.DragMove();              
59
+                DragMove();
60
+            }
61
+        }
62
+
63
+        private void BtnClose_Click(object sender, RoutedEventArgs e)
64
+        {
65
+            MessageBoxResult br = MessageWindow.Show("确定退出系统?", "退出", MessageBoxButton.OKCancel);
66
+            if (br == MessageBoxResult.OK)
67
+            {
68
+                System.Environment.Exit(0);
69
+            }
70
+        }
71
+
72
+        private void BtnMin_Click(object sender, RoutedEventArgs e)
73
+        {
74
+            if (WindowState == WindowState.Minimized)
75
+            {
76
+                WindowState = WindowState.Normal;
77
+            }
78
+            else
79
+            {
80
+                WindowState = WindowState.Minimized;
81
+            }
82
+        }
53 83
     }
54 84
 
55 85
 

+ 6
- 0
XHPZ.Desktop/XHPZ.Desktop.csproj View File

@@ -150,5 +150,11 @@
150 150
   <ItemGroup>
151 151
     <Resource Include="xhpz.ico" />
152 152
   </ItemGroup>
153
+  <ItemGroup>
154
+    <Resource Include="Images\microLessonSystem_19.png" />
155
+  </ItemGroup>
156
+  <ItemGroup>
157
+    <Resource Include="Images\Toobar5.png" />
158
+  </ItemGroup>
153 159
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
154 160
 </Project>

Loading…
Cancel
Save