private void OnMoveDeviceToRoom(object sender, RoutedEventArgs e) { if (sender is FrameworkElement source) { if (source.Tag is Tuple <Devices.Device, Devices.Room> moveArgs) { _deviceProvider.MoveDeviceToRoom(moveArgs.Item1, moveArgs.Item2); } } }