/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/cmdpal/ext/SamplePagesExtension/Pages/ToastCommand.cs
23 строки
692 B
Mike Griese
Add support for filterable, nested context menus (#38776)
24 апр 2025, 21:32
Не верифицирован
24 апр 2025, 21:32
f63fcfd
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation // The Microsoft Corporation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using Microsoft.CommandPalette.Extensions; using Microsoft.CommandPalette.Extensions.Toolkit; namespace SamplePagesExtension; internal sealed partial class ToastCommand(string message, MessageState state = MessageState.Info) : InvokableCommand { public override ICommandResult Invoke() { var t = new ToastStatusMessage(new StatusMessage() { Message = message, State = state, }); t.Show(); return CommandResult.KeepOpen(); } }