ErrorWindow.xaml.cs 622 B

12345678910111213141516171819202122232425
  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. this.SizeToContent = SizeToContent.Height;
  12. }
  13. private void BackClick(object sender, RoutedEventArgs e)
  14. {
  15. this.Close();
  16. }
  17. private void Border_MouseDown(object sender, MouseButtonEventArgs e)
  18. {
  19. if (e.LeftButton == MouseButtonState.Pressed)
  20. DragMove();
  21. }
  22. }
  23. }