26 lines
652 B
C#
26 lines
652 B
C#
using System.Windows;
|
|
using DMS.Core.Helper;
|
|
using DMS.WPF.ViewModels.Dialogs;
|
|
using iNKORE.UI.WPF.Modern.Controls;
|
|
|
|
namespace DMS.WPF.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.");
|
|
// }
|
|
}
|
|
|
|
} |