添加项目文件。
parent
ca51d89f9a
commit
d343d24795
@ -0,0 +1,95 @@
|
||||
<UserControl x:Class="StartServerWPF.Modules.Main.Views.MainView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:StartServerWPF.Modules.Main.Views"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="600" d:DesignWidth="800"
|
||||
xmlns:prism="http://prismlibrary.com/"
|
||||
prism:ViewModelLocator.AutoWireViewModel="True" >
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Loaded">
|
||||
<i:InvokeCommandAction Command="{Binding Path=LoadedCommand}"/>
|
||||
</i:EventTrigger>
|
||||
<i:EventTrigger EventName="Unloaded">
|
||||
<i:InvokeCommandAction Command="{Binding Path=UnloadedCommand}"/>
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="300"/>
|
||||
<ColumnDefinition Width="23*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="52*"/>
|
||||
<RowDefinition Height="75*"/>
|
||||
<RowDefinition Height="112*"/>
|
||||
<RowDefinition Height="30"/>
|
||||
</Grid.RowDefinitions>
|
||||
<GroupBox Header="网络控制">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="1*"/>
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="2*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<RadioButton GroupName="con" x:Name="rtnConnect" Content="连接" Command="{Binding ConnectVPNCommand}" Grid.Row="0" VerticalAlignment="Center"/>
|
||||
<RadioButton GroupName="con" Content="断开连接" Grid.Column="1" Command="{Binding DisConnectVPNCommand}" VerticalAlignment="Center" IsChecked="True"/>
|
||||
<StackPanel Grid.Column="2" Orientation="Horizontal" VerticalAlignment="Center">
|
||||
<Button Content="检查状态" Command="{Binding GetVPNStatusCommand}"/>
|
||||
<TextBlock Text="{Binding VPNStatus}"/>
|
||||
</StackPanel>
|
||||
<Button Content="参数设置" Grid.Row="1" Command="{Binding SetVPNParaCommand}" VerticalAlignment="Center"/>
|
||||
<Button Content="运行日志" Grid.Row="1" Grid.Column="1" Command="{Binding DisplayLogCommand}" VerticalAlignment="Center"/>
|
||||
<TextBlock Grid.Row="1" Grid.Column="2" VerticalAlignment="Center">
|
||||
<Run Text="本机IP:"/>
|
||||
<Run Text="{Binding VpnIP}"/>
|
||||
</TextBlock>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
<GroupBox IsEnabled="{Binding ElementName=rtnConnect,Path=IsChecked}" Grid.Row="1" Header="服务器控制">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
<ColumnDefinition Width="2*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="1*"/>
|
||||
<RowDefinition Height="1*"/>
|
||||
<RowDefinition Height="1*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Button x:Name="btnStart" Content="一键启动" Command="{Binding OneKeyStartCommand}" IsEnabled="{Binding IsEnabledStart}" Grid.Column="0" VerticalAlignment="Center"/>
|
||||
<Button Content="全部关闭" Command="{Binding OneKeyStopCommand}" Grid.Column="1" VerticalAlignment="Center"/>
|
||||
<Button Content="实时波形" Command="{Binding DisplayRealWavesCommand}" Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Right"/>
|
||||
<TextBlock Grid.Row="1" VerticalAlignment="Center" Grid.ColumnSpan="2">
|
||||
<Run Text="启动时间:"/>
|
||||
<Run Text="{Binding StartTime}"/>
|
||||
</TextBlock>
|
||||
<TextBlock Grid.Row="2" Grid.ColumnSpan="2" VerticalAlignment="Center">
|
||||
<Run Text="运行时间:"/>
|
||||
<Run Text="{Binding RunTime}"/>
|
||||
</TextBlock>
|
||||
<DockPanel Grid.Row="2" Grid.Column="2" >
|
||||
<ComboBox DockPanel.Dock="Right" ItemsSource="{Binding IntervalTimesSource}" SelectedIndex="{Binding selectedIndex}" Text="{Binding ProMonInterval}" VerticalAlignment="Center"/>
|
||||
<TextBlock Text="监隔间隔(s):" DockPanel.Dock="Right" VerticalAlignment="Center"/>
|
||||
</DockPanel>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
<ListBox Grid.Row="2" ItemsSource="{Binding ReciveDataSource}">
|
||||
</ListBox>
|
||||
<ProgressBar Grid.Row="3"/>
|
||||
<DataGrid Grid.Column="1" Grid.RowSpan="3" ItemsSource="{Binding DataGridSource}">
|
||||
</DataGrid>
|
||||
<StackPanel Grid.Row="3" Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center">
|
||||
<Button Content="查询" Command="{Binding QueryDataCommand}"/>
|
||||
<Button Content="新增" Command="{Binding InsertDataCommand}"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</UserControl>
|
@ -0,0 +1,9 @@
|
||||
<prism:PrismApplication x:Class="StartServerWPF.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:StartServerWPF"
|
||||
xmlns:prism="http://prismlibrary.com/" >
|
||||
<Application.Resources>
|
||||
|
||||
</Application.Resources>
|
||||
</prism:PrismApplication>
|
Binary file not shown.
@ -0,0 +1,63 @@
|
||||
{
|
||||
"remoteDb":{
|
||||
"ServerAddress": "txgydatabase.mysql.rds.aliyuncs.com",
|
||||
"ServerPort": "3306",
|
||||
"UserName": "tayrds_db",
|
||||
"Password": "txgy1929",
|
||||
"DataBase": "txgymeisdb",
|
||||
"TableName": "event"
|
||||
},
|
||||
"vpnInfo": {
|
||||
"VpnName": "YUWU-VPN-BySM",
|
||||
"VpnIP": "49.232.209.49",
|
||||
"VpnUserName": "lzvpn",
|
||||
"VpnPsw": "Lz123456789"
|
||||
},
|
||||
"SystemLogPath": "Systemlog\\",
|
||||
"DataSavePath": "G:\\DATA\\",
|
||||
"proServer": {
|
||||
"ProName": "server",
|
||||
"ProPath": "serverprogram\\server\\",
|
||||
"ProParams": "service.conf",
|
||||
"JsonPath": null,
|
||||
"Pid": 0,
|
||||
"OperationStr": "open",
|
||||
"ShowState": 0
|
||||
},
|
||||
"proRecv": {
|
||||
"ProName": "gw.recvftp",
|
||||
"ProPath": "serverprogram\\recvftp\\",
|
||||
"ProParams": "-cfg gw.recvftp.json >outRecv.txt",
|
||||
"JsonPath": "gw.recvftp.json",
|
||||
"Pid": 0,
|
||||
"OperationStr": "open",
|
||||
"ShowState": 0
|
||||
},
|
||||
"proApms": {
|
||||
"ProName": "gw.apms",
|
||||
"ProPath": "serverprogram\\apms\\",
|
||||
"ProParams": "-cfg apms.json >outApms.txt",
|
||||
"JsonPath": "apms.json",
|
||||
"Pid": 0,
|
||||
"OperationStr": "open",
|
||||
"ShowState": 0
|
||||
},
|
||||
"proMonitor": {
|
||||
"ProName": "gw.monitor",
|
||||
"ProPath": "serverprogram\\monitor\\",
|
||||
"ProParams": "-sta n1105_station_xyz.csv -port 8086 -rdir G:/DATA/ -btime 2021-03-15T00:00:00 >outMonitor.txt",
|
||||
"JsonPath": null,
|
||||
"Pid": 0,
|
||||
"OperationStr": "open",
|
||||
"ShowState": 0
|
||||
},
|
||||
"proPlot": {
|
||||
"ProName": "gw.plot",
|
||||
"ProPath": "serverprogram\\plot\\",
|
||||
"ProParams": null,
|
||||
"JsonPath": null,
|
||||
"Pid": 0,
|
||||
"OperationStr": "open",
|
||||
"ShowState": 0
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
<Window x:Class="StartServerWPF.Views.MainWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:prism="http://prismlibrary.com/"
|
||||
prism:ViewModelLocator.AutoWireViewModel="True"
|
||||
Title="{Binding Title}" Height="350" Width="525" >
|
||||
<Grid>
|
||||
<ContentControl prism:RegionManager.RegionName="MainContentRegion" />
|
||||
</Grid>
|
||||
</Window>
|
Loading…
Reference in New Issue