private void EditDevice()
        {
            var window = new NewDevice
            {
                Device = selectedDevice.Clone()
            };

            if (window.ShowDialog() == true)
            {
                App.DeviceRepository.Update(window.Device.ToRepositoryModel());
                DeviceList(selectedDeviceType);
            }
        }
        private void uxFileNew_Click(object sender, RoutedEventArgs e)
        {
            var window = new NewDevice();

            window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            if (window.ShowDialog() == true)
            {
                var uiDeviceModel         = window.Device;
                var repositoryDeviceModel = uiDeviceModel.ToRepositoryModel();

                App.DeviceRepository.Add(repositoryDeviceModel);
                DeviceList(selectedDeviceType);
            }
        }