You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
2.9 KiB
54 lines
2.9 KiB
<Window x:Class="ScadaTool.MainWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:local="clr-namespace:ScadaTool"
|
|
xmlns:vm="clr-namespace:ScadaTool.ViewModel"
|
|
xmlns:tb="http://www.hardcodet.net/taskbar"
|
|
mc:Ignorable="d" WindowStartupLocation="CenterScreen"
|
|
Closing="Window_Closing" FontFamily="微软雅黑" FontSize="16"
|
|
Title="SCADA采集工具" Height="350" Width="700" Icon="Resources/icon.ico" ResizeMode="NoResize">
|
|
<Window.DataContext>
|
|
<vm:MainViewModel/>
|
|
</Window.DataContext>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="395"/>
|
|
<ColumnDefinition Width="5"/>
|
|
<ColumnDefinition Width="300"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!--托盘图标-->
|
|
<tb:TaskbarIcon x:Name="myNotifyIcon"
|
|
Visibility="Visible"
|
|
DoubleClickCommand="{Binding ShowWindowCommand}"
|
|
ToolTipText="{Binding toolTip, UpdateSourceTrigger=PropertyChanged}"
|
|
IconSource="{Binding icoPath, UpdateSourceTrigger=PropertyChanged}">
|
|
<tb:TaskbarIcon.ContextMenu>
|
|
<ContextMenu>
|
|
<MenuItem Header="显示窗口" Command="{Binding ShowWindowCommand}" />
|
|
<MenuItem Header="关闭窗口" Command="{Binding HidenApplicationCommand}" />
|
|
<Separator />
|
|
<MenuItem Header="退出" Command="{Binding ExitApplicationCommand}" />
|
|
</ContextMenu>
|
|
</tb:TaskbarIcon.ContextMenu>
|
|
</tb:TaskbarIcon>
|
|
|
|
<Grid Grid.Column="0" Margin="30">
|
|
<TextBlock Text="软件功能介绍: " FontWeight="Bold"/>
|
|
<TextBlock Text="1. 转发进出站请求回复,所以请确保网络通畅..." Margin="0, 50"/>
|
|
<TextBlock Text="2. 监控本地目录下生成图片并自动上传..." Margin="0, 80"/>
|
|
<TextBlock Text="3. 相关配置文件存于D盘根目录..." Margin="0, 110"/>
|
|
<TextBlock Text="4. Log文件位于软件运行Log/目录下..." Margin="0,140,0,90"/>
|
|
<TextBlock Text="@江苏立讯机器人有限公司" FontSize="14" FontWeight="Bold"
|
|
HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="20"/>
|
|
</Grid>
|
|
<GridSplitter Grid.Column="1" Width="5" HorizontalAlignment="Stretch" />
|
|
<Grid Grid.Column="2">
|
|
<Button x:Name="StartBtn" HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
Content="点击启动" Width="120" Height="60" Command="{Binding StartServiceCommand}"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|