Interaction logic for Item.xaml
Inheritance: System.Windows.Controls.UserControl, IComparable
        private void Item_Clicked(Controls.Item item)
        {
            var data = new EventData(this);

            data.Id     = "OPEN_DEVICE_DETAILS";
            data.Data01 = item.Device;
            SendData?.Invoke(data);
        }
 private void AddItem(DeviceDescription device)
 {
     if (device != null && device.Enabled && !Items.ToList().Exists(o => o.Device.UniqueId == device.UniqueId))
     {
         var item = new Controls.Item(device, userConfiguration);
         item.ComparisonType = comparisonType;
         item.Clicked       += Item_Clicked;
         Items.Add(item);
         Items.Sort();
     }
 }
 private void AddItem(DeviceDescription device)
 {
     if (device != null && device.Enabled && !Items.ToList().Exists(o => o.Device.UniqueId == device.UniqueId))
     {
         var item = new Controls.Item(device, userConfiguration);
         item.ComparisonType = comparisonType;
         item.Clicked += Item_Clicked;
         Items.Add(item);
         Items.Sort();
     }
 }