@@ -0,0 +1,78 @@ | |||||
# Build and Object Folders | |||||
bin/ | |||||
obj/ | |||||
.vs/ | |||||
# Nuget packages directory | |||||
packages/ | |||||
## Ignore Visual Studio temporary files, build results, and | |||||
## files generated by popular Visual Studio add-ons. | |||||
# User-specific files | |||||
*.suo | |||||
*.user | |||||
*.sln.docstates | |||||
# Build results | |||||
[Dd]ebug/ | |||||
[Rr]elease/ | |||||
x64/ | |||||
*_i.c | |||||
*_p.c | |||||
*.ilk | |||||
*.meta | |||||
*.obj | |||||
*.pch | |||||
*.pdb | |||||
*.pgc | |||||
*.pgd | |||||
*.rsp | |||||
*.sbr | |||||
*.tlb | |||||
*.tli | |||||
*.tlh | |||||
*.tmp | |||||
*.log | |||||
*.vspscc | |||||
*.vssscc | |||||
.builds | |||||
# Visual C++ cache files | |||||
ipch/ | |||||
*.aps | |||||
*.ncb | |||||
*.opensdf | |||||
*.sdf | |||||
# Visual Studio profiler | |||||
*.psess | |||||
*.vsp | |||||
*.vspx | |||||
# Guidance Automation Toolkit | |||||
*.gpState | |||||
# ReSharper is a .NET coding add-in | |||||
_ReSharper* | |||||
# NCrunch | |||||
*.ncrunch* | |||||
.*crunch*.local.xml | |||||
# Installshield output folder | |||||
[Ee]xpress | |||||
# DocProject is a documentation generator add-in | |||||
DocProject/buildhelp/ | |||||
DocProject/Help | |||||
UpgradeLog*.XML | |||||
# Lightswitch | |||||
_Pvt_Extensions | |||||
GeneratedArtifacts | |||||
*.xap | |||||
ModelManifest.xml | |||||
#Backup file | |||||
*.bak |
@@ -0,0 +1,25 @@ | |||||
| |||||
Microsoft Visual Studio Solution File, Format Version 12.00 | |||||
# Visual Studio Version 17 | |||||
VisualStudioVersion = 17.14.36301.6 d17.14 | |||||
MinimumVisualStudioVersion = 10.0.40219.1 | |||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ModbusDemo", "ModbusDemo\ModbusDemo.csproj", "{4F00ED24-6BEE-4192-9CA4-656802B78A6D}" | |||||
EndProject | |||||
Global | |||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | |||||
Debug|Any CPU = Debug|Any CPU | |||||
Release|Any CPU = Release|Any CPU | |||||
EndGlobalSection | |||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | |||||
{4F00ED24-6BEE-4192-9CA4-656802B78A6D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | |||||
{4F00ED24-6BEE-4192-9CA4-656802B78A6D}.Debug|Any CPU.Build.0 = Debug|Any CPU | |||||
{4F00ED24-6BEE-4192-9CA4-656802B78A6D}.Release|Any CPU.ActiveCfg = Release|Any CPU | |||||
{4F00ED24-6BEE-4192-9CA4-656802B78A6D}.Release|Any CPU.Build.0 = Release|Any CPU | |||||
EndGlobalSection | |||||
GlobalSection(SolutionProperties) = preSolution | |||||
HideSolutionNode = FALSE | |||||
EndGlobalSection | |||||
GlobalSection(ExtensibilityGlobals) = postSolution | |||||
SolutionGuid = {EC15C5B8-E7C1-4011-9DA0-AF136A5C3086} | |||||
EndGlobalSection | |||||
EndGlobal |
@@ -0,0 +1,10 @@ | |||||
<prism:PrismApplication x:Class="ModbusDemo.App" | |||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |||||
xmlns:local="clr-namespace:ModbusDemo" | |||||
xmlns:prism="http://prismlibrary.com/" | |||||
> | |||||
<prism:PrismApplication.Resources> | |||||
</prism:PrismApplication.Resources> | |||||
</prism:PrismApplication> |
@@ -0,0 +1,32 @@ | |||||
using Prism.DryIoc; | |||||
using Prism.Ioc; | |||||
using System.Configuration; | |||||
using System.Data; | |||||
using System.Windows; | |||||
namespace ModbusDemo | |||||
{ | |||||
/// <summary> | |||||
/// Interaction logic for App.xaml | |||||
/// </summary> | |||||
public partial class App : PrismApplication | |||||
{ | |||||
/// <summary> | |||||
/// 创建启动页面 | |||||
/// </summary> | |||||
/// <returns>启动页面</returns> | |||||
protected override Window CreateShell() | |||||
{ | |||||
return Container.Resolve<Window>(); | |||||
} | |||||
/// <summary> | |||||
/// 实现控制反转和依赖注入功能 | |||||
/// </summary> | |||||
/// <param name="containerRegistry"></param> | |||||
protected override void RegisterTypes(IContainerRegistry containerRegistry) | |||||
{ | |||||
} | |||||
} | |||||
} |
@@ -0,0 +1,10 @@ | |||||
using System.Windows; | |||||
[assembly: ThemeInfo( | |||||
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located | |||||
//(used if a resource is not found in the page, | |||||
// or application resource dictionaries) | |||||
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located | |||||
//(used if a resource is not found in the page, | |||||
// app, or any theme specific resource dictionaries) | |||||
)] |
@@ -0,0 +1,12 @@ | |||||
<Window x:Class="ModbusDemo.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:ModbusDemo" | |||||
mc:Ignorable="d" | |||||
Title="MainWindow" Height="450" Width="800"> | |||||
<Grid> | |||||
</Grid> | |||||
</Window> |
@@ -0,0 +1,24 @@ | |||||
using System.Text; | |||||
using System.Windows; | |||||
using System.Windows.Controls; | |||||
using System.Windows.Data; | |||||
using System.Windows.Documents; | |||||
using System.Windows.Input; | |||||
using System.Windows.Media; | |||||
using System.Windows.Media.Imaging; | |||||
using System.Windows.Navigation; | |||||
using System.Windows.Shapes; | |||||
namespace ModbusDemo | |||||
{ | |||||
/// <summary> | |||||
/// Interaction logic for MainWindow.xaml | |||||
/// </summary> | |||||
public partial class MainWindow : Window | |||||
{ | |||||
public MainWindow() | |||||
{ | |||||
InitializeComponent(); | |||||
} | |||||
} | |||||
} |
@@ -0,0 +1,16 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk"> | |||||
<PropertyGroup> | |||||
<OutputType>WinExe</OutputType> | |||||
<TargetFramework>net8.0-windows</TargetFramework> | |||||
<Nullable>enable</Nullable> | |||||
<ImplicitUsings>enable</ImplicitUsings> | |||||
<UseWPF>true</UseWPF> | |||||
</PropertyGroup> | |||||
<ItemGroup> | |||||
<PackageReference Include="MaterialDesignThemes" Version="5.2.1" /> | |||||
<PackageReference Include="Prism.DryIoc" Version="8.1.97" /> | |||||
</ItemGroup> | |||||
</Project> |