重构项目,将项目拆分(临时提交)
This commit is contained in:
27
DMS.WPF/Views/Dialogs/DeviceDialog.xaml.cs
Normal file
27
DMS.WPF/Views/Dialogs/DeviceDialog.xaml.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.Windows;
|
||||
using DMS.Helper;
|
||||
using DMS.ViewModels.Dialogs;
|
||||
using iNKORE.UI.WPF.Modern.Controls;
|
||||
using DMS.Models;
|
||||
|
||||
namespace DMS.Views.Dialogs;
|
||||
|
||||
public partial class DeviceDialog
|
||||
{
|
||||
public DeviceDialog(DeviceDialogViewModel viewModel)
|
||||
{
|
||||
InitializeComponent();
|
||||
DataContext = viewModel;
|
||||
|
||||
// Log the ProtocolType value
|
||||
if (viewModel.Device != null)
|
||||
{
|
||||
NlogHelper.Info($"DeviceDialog opened. Device ProtocolType: {viewModel.Device.ProtocolType}");
|
||||
}
|
||||
else
|
||||
{
|
||||
NlogHelper.Info("DeviceDialog opened. Device is null.");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user