ErrorWindow.xaml.cs 567 B

123456789101112131415161718192021222324
  1. using System.Windows;
  2. using System.Windows.Input;
  3. namespace RaspisKusach
  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. }