/
Edwar
/
cam-api-examples
Обзор
Документация
Войти
/
Edwar
/
cam-api-examples
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
UI/ExtensionUtilityNotifyNet/project/main/TextInputWindow.xaml.cs
36 строк
763 B
cepera
New examples
13 май 2025, 16:26
13 май 2025, 16:26
5baff8a
Код
Авторство
О чём код?
using System.Windows; namespace ExtensionUtilityNotifyNet; /// <summary> /// Simple window to ask user for text input /// </summary> public partial class TextInputWindow { /// <summary> /// User input from the text box /// </summary> public string? UserInput { get; private set; } /// <summary> /// Simple window to ask user for text input /// </summary> public TextInputWindow() { InitializeComponent(); } private void Ok_Click(object sender, RoutedEventArgs e) { UserInput = InputBox.Text; DialogResult = true; Close(); } private void Cancel_Click(object sender, RoutedEventArgs e) { UserInput = null; DialogResult = false; Close(); } }