ErrorWindow.xaml.cs 563 B

12345678910111213141516171819202122232425
  1. using System.Windows;
  2. using System.Windows.Input;
  3. namespace MyTests
  4. {
  5. public partial class ErrorWindow : Window
  6. {
  7. public ErrorWindow(string error)
  8. {
  9. InitializeComponent();
  10. ErrorLabel.Text = error;
  11. }
  12. private void BackClick(object sender, RoutedEventArgs e)
  13. {
  14. this.Close();
  15. }
  16. private void Border_MouseDown(object sender, MouseButtonEventArgs e)
  17. {
  18. if (e.LeftButton == MouseButtonState.Pressed)
  19. DragMove();
  20. }
  21. }
  22. }