-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
119 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 19 additions & 19 deletions
38
...rchInstitute/GeothermalResearchInstitute.PlcClient/GeothermalResearchInstitute.Plc.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>$(NetcoreCurrentTargetFramework)</TargetFrameworks> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\GeothermalResearchInstitute\GeothermalResearchInstitute.Grpc\GeothermalResearchInstitute.Grpc.csproj" /> | ||
<ProjectReference Include="..\..\third_party\CRC32C.NET\Crc32C.NET\Crc32C.NET.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="3.0.1" /> | ||
<PackageReference Include="Overby.Extensions.AsyncBinaryReaderWriter" Version="1.0.39" /> | ||
<PackageReference Include="System.Text.Json" Version="4.6.0" /> | ||
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="4.10.0" /> | ||
</ItemGroup> | ||
|
||
</Project> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>$(NetcoreCurrentTargetFramework)</TargetFrameworks> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\GeothermalResearchInstitute\GeothermalResearchInstitute.Grpc\GeothermalResearchInstitute.Grpc.csproj" /> | ||
<ProjectReference Include="..\..\third_party\CRC32C.NET\Crc32C.NET\Crc32C.NET.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="3.0.1" /> | ||
<PackageReference Include="Overby.Extensions.AsyncBinaryReaderWriter" Version="1.0.39" /> | ||
<PackageReference Include="System.Text.Json" Version="4.6.0" /> | ||
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="4.10.0" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<Application | ||
x:Class="ProtocolLab.App" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="clr-namespace:ProtocolLab" | ||
Startup="Application_Startup"> | ||
<Application.Resources /> | ||
</Application> | ||
<Application | ||
x:Class="ProtocolLab.App" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="clr-namespace:ProtocolLab" | ||
Startup="Application_Startup"> | ||
<Application.Resources /> | ||
</Application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,51 @@ | ||
<Window | ||
x:Class="ProtocolLab.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:local="clr-namespace:ProtocolLab" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
Title="MainWindow" | ||
Width="800" | ||
Height="450" | ||
Loaded="Window_Loaded" | ||
Unloaded="Window_Unloaded" | ||
mc:Ignorable="d"> | ||
<Grid> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="*" /> | ||
<ColumnDefinition Width="3*" /> | ||
</Grid.ColumnDefinitions> | ||
<DockPanel> | ||
<StackPanel | ||
VerticalAlignment="Stretch" | ||
DockPanel.Dock="Top" | ||
Orientation="Vertical"> | ||
<StackPanel.Resources> | ||
<Style TargetType="Button"> | ||
<Setter Property="Margin" Value="5" /> | ||
<Setter Property="Padding" Value="15,5" /> | ||
</Style> | ||
</StackPanel.Resources> | ||
<Button | ||
Click="Connect_Click" | ||
Content="发送 Connect 命令" | ||
ToolTip="当 PLC 通过 TCP 连接到服务端时,服务端会立刻向 PLC 发送 Connect 命令" /> | ||
<Button | ||
Click="GetMetric_Click" | ||
Content="发送 GetMetric 命令" | ||
ToolTip="服务端会定期向保持连接的 PLC 发送 GetMetric 命令收集数据" /> | ||
<Button | ||
Click="UpdateSwitch_Click" | ||
Content="发送 UpdateSwitch 命令" | ||
ToolTip="按下任何开关时会发送 UpdateSwitch 命令,此处发送内容以开启热泵风扇为例" /> | ||
</StackPanel> | ||
<FlowDocumentScrollViewer Margin="5"> | ||
<FlowDocument | ||
x:Name="LogDocument" | ||
FontFamily="Calibre, Microsoft YaHei UI" | ||
FontSize="9pt" /> | ||
</FlowDocumentScrollViewer> | ||
</DockPanel> | ||
</Grid> | ||
</Window> | ||
<Window | ||
x:Class="ProtocolLab.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:local="clr-namespace:ProtocolLab" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
Title="MainWindow" | ||
Width="800" | ||
Height="450" | ||
Loaded="Window_Loaded" | ||
Unloaded="Window_Unloaded" | ||
mc:Ignorable="d"> | ||
<Grid> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="*" /> | ||
<ColumnDefinition Width="3*" /> | ||
</Grid.ColumnDefinitions> | ||
<DockPanel> | ||
<StackPanel | ||
VerticalAlignment="Stretch" | ||
DockPanel.Dock="Top" | ||
Orientation="Vertical"> | ||
<StackPanel.Resources> | ||
<Style TargetType="Button"> | ||
<Setter Property="Margin" Value="5" /> | ||
<Setter Property="Padding" Value="15,5" /> | ||
</Style> | ||
</StackPanel.Resources> | ||
<Button | ||
Click="Connect_Click" | ||
Content="发送 Connect 命令" | ||
ToolTip="当 PLC 通过 TCP 连接到服务端时,服务端会立刻向 PLC 发送 Connect 命令" /> | ||
<Button | ||
Click="GetMetric_Click" | ||
Content="发送 GetMetric 命令" | ||
ToolTip="服务端会定期向保持连接的 PLC 发送 GetMetric 命令收集数据" /> | ||
<Button | ||
Click="UpdateSwitch_Click" | ||
Content="发送 UpdateSwitch 命令" | ||
ToolTip="按下任何开关时会发送 UpdateSwitch 命令,此处发送内容以开启热泵风扇为例" /> | ||
</StackPanel> | ||
<FlowDocumentScrollViewer Margin="5"> | ||
<FlowDocument | ||
x:Name="LogDocument" | ||
FontFamily="Calibre, Microsoft YaHei UI" | ||
FontSize="9pt" /> | ||
</FlowDocumentScrollViewer> | ||
</DockPanel> | ||
</Grid> | ||
</Window> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop"> | ||
|
||
<PropertyGroup> | ||
<OutputType>WinExe</OutputType> | ||
<TargetFramework>netcoreapp3.0</TargetFramework> | ||
<UseWPF>true</UseWPF> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.0" /> | ||
<PackageReference Include="System.Collections.Immutable" Version="1.7.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\GeothermalResearchInstitute\GeothermalResearchInstitute.PlcClient\GeothermalResearchInstitute.Plc.csproj" /> | ||
</ItemGroup> | ||
|
||
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop"> | ||
|
||
<PropertyGroup> | ||
<OutputType>WinExe</OutputType> | ||
<TargetFramework>$(NetcoreCurrentTargetFramework)</TargetFramework> | ||
<UseWPF>true</UseWPF> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.0" /> | ||
<PackageReference Include="System.Collections.Immutable" Version="1.7.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\GeothermalResearchInstitute\GeothermalResearchInstitute.PlcClient\GeothermalResearchInstitute.Plc.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFrameworks>$(NetcoreCurrentTargetFramework)</TargetFrameworks> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="System.Text.Json" Version="4.6.0" /> | ||
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="4.10.0" /> | ||
</ItemGroup> | ||
|
||
</Project> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFrameworks>$(NetcoreCurrentTargetFramework)</TargetFrameworks> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="System.Text.Json" Version="4.6.0" /> | ||
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="4.10.0" /> | ||
</ItemGroup> | ||
|
||
</Project> |