/
benzenergy
/
BenzConfig
Обзор
Документация
Войти
/
benzenergy
/
BenzConfig
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/ErrorWindow.xaml.cs
48 строк
1 KB
benzenergy
Add files via upload
03 фев 2026, 11:01
Не верифицирован
03 фев 2026, 11:01
13f79ec
Код
Авторство
О чём код?
/* * BenzConfig * Copyright (C) 2024 benzenergy * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ using System.Windows; using System.Windows.Input; namespace ver20 { public partial class ErrorWindow : Window { public ErrorWindow(string message) { InitializeComponent(); MessageText.Text = message; } private void BtnOk_Click(object sender, RoutedEventArgs e) { this.Close(); } private void BtnClose_Click(object sender, RoutedEventArgs e) { this.Close(); } private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { if (e.ButtonState == MouseButtonState.Pressed) this.DragMove(); } } }