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