Files
DMS/DMS.WPF/Views/Dialogs/DeviceDialog.xaml.cs

27 lines
650 B
C#
Raw Normal View History

2025-07-19 09:25:01 +08:00
using System.Windows;
using DMS.Core.Helper;
using DMS.WPF.ViewModels.Dialogs;
using iNKORE.UI.WPF.Modern.Controls;
2025-07-19 09:25:01 +08:00
using DMS.WPF.Models;
2025-07-19 09:25:01 +08:00
namespace DMS.WPF.Views.Dialogs;
public partial class DeviceDialog
{
2025-07-01 21:34:20 +08:00
public DeviceDialog(DeviceDialogViewModel viewModel)
{
InitializeComponent();
2025-07-01 21:34:20 +08:00
DataContext = viewModel;
// Log the ProtocolType value
if (viewModel.Device != null)
{
2025-07-06 19:51:53 +08:00
NlogHelper.Info($"DeviceDialog opened. Device ProtocolType: {viewModel.Device.ProtocolType}");
}
else
{
2025-07-06 19:51:53 +08:00
NlogHelper.Info("DeviceDialog opened. Device is null.");
}
}
}