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