14 references to PanelConfirmKind
aspire-tray (14)
NativeSmokeHarness.cs (2)
220
Require(_application.PanelForSmoke.Confirmation ==
PanelConfirmKind
.RemoveMissing, "A missing recent AppHost was not offered for removal inline.");
239
Require(_application.PanelForSmoke.Confirmation ==
PanelConfirmKind
.ClearRecent, "Clear did not ask inline.");
src\Aspire.Tray\Common\TrayPanel.cs (12)
163
public
PanelConfirmKind
? Confirmation => _confirm?.Kind;
265
BeginConfirm(new(
PanelConfirmKind
.RemoveMissing, PanelSection.Recent, host));
653
PanelConfirmKind
.ClearRecent => new(PanelTargetKind.ClearRecent, confirm.Section, null),
795
BeginConfirm(new(
PanelConfirmKind
.ClearRecent, PanelSection.Recent, null));
805
PanelConfirmKind
.ClearRecent => new(PanelActionKind.ClearRecent, Anchor: target.Bounds),
874
if (section == PanelSection.Recent && _confirm is { Kind:
PanelConfirmKind
.ClearRecent })
888
var confirming = _confirm is { Kind:
PanelConfirmKind
.RemoveMissing } confirm
1455
PanelConfirmKind
.RemoveMissing => _state.RecentAppHosts.FirstOrDefault(host => host.Id == confirm.Host!.Id),
1458
var valid = confirm.Kind ==
PanelConfirmKind
.ClearRecent ? _state.CanClearRecent : current is not null;
1483
PanelConfirmKind
.ClearRecent => ("Clear recent AppHosts?", "Pinned AppHosts are kept.", "Clear", "Clear recent AppHosts"),
1491
Truncation: confirm.Kind ==
PanelConfirmKind
.RemoveMissing ? PanelTruncation.Middle : PanelTruncation.End));
1744
private sealed record PanelConfirm(
PanelConfirmKind
Kind, PanelSection Section, AppHostMenuItem? Host);