2025-06-12 13:15:55 +08:00
|
|
|
|
using System.Windows;
|
|
|
|
|
|
using iNKORE.UI.WPF.Modern.Controls;
|
2025-07-06 19:51:53 +08:00
|
|
|
|
using PMSWPF.Helper;
|
2025-06-26 19:36:27 +08:00
|
|
|
|
using PMSWPF.Models;
|
2025-06-12 13:15:55 +08:00
|
|
|
|
using PMSWPF.ViewModels.Dialogs;
|
|
|
|
|
|
|
|
|
|
|
|
namespace PMSWPF.Views.Dialogs;
|
|
|
|
|
|
|
|
|
|
|
|
public partial class DeviceDialog
|
|
|
|
|
|
{
|
2025-07-01 21:34:20 +08:00
|
|
|
|
public DeviceDialog(DeviceDialogViewModel viewModel)
|
2025-06-12 13:15:55 +08:00
|
|
|
|
{
|
|
|
|
|
|
InitializeComponent();
|
2025-07-01 21:34:20 +08:00
|
|
|
|
DataContext = viewModel;
|
2025-07-05 01:31:44 +08:00
|
|
|
|
|
|
|
|
|
|
// 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}");
|
2025-07-05 01:31:44 +08:00
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
2025-07-06 19:51:53 +08:00
|
|
|
|
NlogHelper.Info("DeviceDialog opened. Device is null.");
|
2025-07-05 01:31:44 +08:00
|
|
|
|
}
|
2025-06-12 13:15:55 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-06-23 17:01:06 +08:00
|
|
|
|
}
|