14 references to PanelConfirmKind
aspire-tray (14)
NativeSmokeHarness.cs (2)
205Require(_application.PanelForSmoke.Confirmation == PanelConfirmKind.RemoveMissing, "A missing recent AppHost was not offered for removal inline."); 224Require(_application.PanelForSmoke.Confirmation == PanelConfirmKind.ClearRecent, "Clear did not ask inline.");
src\Aspire.Tray\Common\TrayPanel.cs (12)
157public PanelConfirmKind? Confirmation => _confirm?.Kind; 260BeginConfirm(new(PanelConfirmKind.RemoveMissing, PanelSection.Recent, host)); 570PanelConfirmKind.ClearRecent => new(PanelTargetKind.ClearRecent, confirm.Section, null), 712BeginConfirm(new(PanelConfirmKind.ClearRecent, PanelSection.Recent, null)); 722PanelConfirmKind.ClearRecent => new(PanelActionKind.ClearRecent, Anchor: target.Bounds), 791if (section == PanelSection.Recent && _confirm is { Kind: PanelConfirmKind.ClearRecent }) 805var confirming = _confirm is { Kind: PanelConfirmKind.RemoveMissing } confirm 1342PanelConfirmKind.RemoveMissing => _state.RecentAppHosts.FirstOrDefault(host => host.Id == confirm.Host!.Id), 1345var valid = confirm.Kind == PanelConfirmKind.ClearRecent ? _state.CanClearRecent : current is not null; 1370PanelConfirmKind.ClearRecent => ("Clear recent AppHosts?", "Pinned AppHosts are kept.", "Clear", "Clear recent AppHosts"), 1378Truncation: confirm.Kind == PanelConfirmKind.RemoveMissing ? PanelTruncation.Middle : PanelTruncation.End)); 1633private sealed record PanelConfirm(PanelConfirmKind Kind, PanelSection Section, AppHostMenuItem? Host);