123456789101112131415161718192021222324 |
- using System.Windows;
- namespace MyTests
- {
- public partial class ConfirmationWindow : Window
- {
- public bool answer;
- public ConfirmationWindow(bool _answer = false)
- {
- InitializeComponent();
- answer = _answer;
- }
- private void YesButton(object sender, RoutedEventArgs e)
- {
- answer = true;
- this.Close();
- }
- private void NoButton(object sender, RoutedEventArgs e)
- {
- answer = false;
- this.Close();
- }
- }
- }
|