15 references to Id
aspire-tray (15)
TrayApplication.Menus.cs (4)
151var host = (row.Recent ? state.RecentAppHosts : state.AppHosts).SingleOrDefault(item => item.Id == row.Id); 157row.DetailsText = AppHostPresentation.GetMenuDetailsText(row.Id.AppHostPath, host?.Subtitle ?? "AppHost no longer available"); 160UpdateItem(row.Submenu, row.DetailsPosition, true, AppHostPresentation.GetPathLabel(row.Id.AppHostPath), false); 382var host = row is null ? null : controller.State.AppHosts.SingleOrDefault(host => host.Id == row.Id);
TrayApplication.NativeSmoke.cs (11)
19internal IReadOnlyList<AppHostId> RowIdsForSmoke => _menu!.Rows.Select(row => row.Id).ToArray(); 130TrackMenu(_menu!.Rows.Single(row => row.Id == id).Submenu, point); 142var row = _menu!.Rows.Single(row => row.Id == id); 145&& ReadText(row.Submenu, last, true) == Literal(AppHostPresentation.GetPathLabel(row.Id.AppHostPath)), 153var row = _menu!.Rows.Single(row => row.Id == id); 166NativeSmokeHarness.Require(IsTooltipVisibleForSmoke && _menuTooltipRow?.Id == id, 230NativeSmokeHarness.Require(menu.Rows.Select(row => row.Id).SequenceEqual(state.AppHosts.Concat(state.RecentAppHosts).Select(row => row.Id)), 241var host = (row.Recent ? state.RecentAppHosts : state.AppHosts).SingleOrDefault(host => host.Id == row.Id); 287NativeSmokeHarness.Require(row.DetailsText == AppHostPresentation.GetMenuDetailsText(row.Id.AppHostPath, 289&& titles[^1] == Literal(AppHostPresentation.GetPathLabel(row.Id.AppHostPath)), 345: (row.Recent ? state.RecentAppHosts : state.AppHosts).SingleOrDefault(host => host.Id == row.Id);