public void AppVirtuallMovingToThisDevice(TemporaryAppItemViewModel app) { app.Expired += App_Expired; foreach (var childApp in app.ChildApps) { _device.UnhideSessionsForProcessId(childApp.ProcessId); } bool hasExistingAppGroup = false; foreach (var a in Apps) { if (a.DoesGroupWith(app)) { hasExistingAppGroup = true; break; } } if (!hasExistingAppGroup) { // Add a fake app entry. Apps.AddSorted(app, AppItemViewModel.CompareByExeName); } }