diff --git a/DMS.WPF/ValueConverts/EnumDescriptionConverter.cs b/DMS.WPF/ValueConverts/EnumDescriptionConverter.cs index 92f72c5..71248bd 100644 --- a/DMS.WPF/ValueConverts/EnumDescriptionConverter.cs +++ b/DMS.WPF/ValueConverts/EnumDescriptionConverter.cs @@ -3,7 +3,7 @@ using System.Globalization; using System.Windows; using System.Windows.Data; -namespace DMS.ValueConverts; +namespace DMS.WPF.ValueConverts; public class EnumDescriptionConverter : IValueConverter { diff --git a/DMS.WPF/ValueConverts/NullableBooleanConverter.cs b/DMS.WPF/ValueConverts/NullableBooleanConverter.cs index c9786fc..680df23 100644 --- a/DMS.WPF/ValueConverts/NullableBooleanConverter.cs +++ b/DMS.WPF/ValueConverts/NullableBooleanConverter.cs @@ -1,8 +1,7 @@ -using System; using System.Globalization; using System.Windows.Data; -namespace DMS.ValueConverts +namespace DMS.WPF.ValueConverts { public class NullableBooleanConverter : IValueConverter { diff --git a/DMS.WPF/ViewModels/Items/DeviceItemViewModel.cs b/DMS.WPF/ViewModels/Items/DeviceItemViewModel.cs index 6078198..8a29df2 100644 --- a/DMS.WPF/ViewModels/Items/DeviceItemViewModel.cs +++ b/DMS.WPF/ViewModels/Items/DeviceItemViewModel.cs @@ -54,6 +54,11 @@ public partial class DeviceItemViewModel : ObservableObject [ObservableProperty] private string _status; + partial void OnProtocolChanged(ProtocolType oldValue, ProtocolType newValue) + { + + } + public ObservableCollection VariableTables { get; set; } = new(); public DeviceItemViewModel(DeviceDto dto) diff --git a/DMS.WPF/Views/Dialogs/ConfirmDialog.xaml b/DMS.WPF/Views/Dialogs/ConfirmDialog.xaml index b807cc5..56344cb 100644 --- a/DMS.WPF/Views/Dialogs/ConfirmDialog.xaml +++ b/DMS.WPF/Views/Dialogs/ConfirmDialog.xaml @@ -6,7 +6,6 @@ xmlns:ikw="http://schemas.inkore.net/lib/ui/wpf" xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern" xmlns:vmd="clr-namespace:DMS.WPF.ViewModels.Dialogs" - xmlns:vc="clr-namespace:DMS.ValueConverts" xmlns:ex="clr-namespace:DMS.Extensions" xmlns:en="clr-namespace:DMS.Core.Enums" Title="{Binding Title}" diff --git a/DMS.WPF/Views/Dialogs/DeviceDialog.xaml b/DMS.WPF/Views/Dialogs/DeviceDialog.xaml index fb46847..58f0c26 100644 --- a/DMS.WPF/Views/Dialogs/DeviceDialog.xaml +++ b/DMS.WPF/Views/Dialogs/DeviceDialog.xaml @@ -6,10 +6,10 @@ xmlns:ikw="http://schemas.inkore.net/lib/ui/wpf" xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern" xmlns:vmd="clr-namespace:DMS.WPF.ViewModels.Dialogs" - xmlns:vc="clr-namespace:DMS.ValueConverts" xmlns:ex="clr-namespace:DMS.Extensions" xmlns:enums="clr-namespace:DMS.Core.Enums;assembly=DMS.Core" xmlns:i="http://schemas.microsoft.com/xaml/behaviors" + xmlns:vc="clr-namespace:DMS.WPF.ValueConverts" Title="{Binding Title}" CloseButtonText="取消" DefaultButton="Primary" @@ -34,6 +34,7 @@ + @@ -61,17 +62,17 @@ Text="{Binding Device.IpAddress, UpdateSourceTrigger=PropertyChanged}" /> - - - - - - - - - - - + + + + + + + + - @@ -109,14 +110,15 @@ - + - +