创建了PLC相关的文件

This commit is contained in:
2025-05-29 21:46:53 +08:00
parent 88ef76bd4d
commit 1294adfbfd
12 changed files with 219 additions and 7 deletions

View File

@@ -3,6 +3,7 @@
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:hc="https://handyorg.github.io/handycontrol"
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
xmlns:local="clr-namespace:PMSWPF.Views"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

29
Views/PlcListView.xaml Normal file
View File

@@ -0,0 +1,29 @@
<Window
x:Class="PMSWPF.Views.PlcListView"
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:hc="https://handyorg.github.io/handycontrol"
xmlns:local="clr-namespace:PMSWPF.Views"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vm="clr-namespace:PMSWPF.ViewModels"
Title="PlcListView"
Width="800"
Height="450"
d:DataContext="{d:DesignInstance vm:PlcListViewModel}"
mc:Ignorable="d">
<StackPanel>
<StackPanel Height="auto" />
<DataGrid
AutoGenerateColumns="False"
CanUserAddRows="True"
CanUserDeleteRows="True"
ItemsSource="{Binding PlcList}">
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding Path=Name}" Header="名称" />
</DataGrid.Columns>
</DataGrid>
</StackPanel>
</Window>

27
Views/PlcListView.xaml.cs Normal file
View File

@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
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.Shapes;
namespace PMSWPF.Views
{
/// <summary>
/// PlcListView.xaml 的交互逻辑
/// </summary>
public partial class PlcListView : Window
{
public PlcListView()
{
InitializeComponent();
}
}
}