UsialWindow.xaml.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. using System.Windows.Data;
  9. using System.Windows.Documents;
  10. using System.Windows.Input;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Shapes;
  14. namespace UP43P_Krupina.Windows
  15. {
  16. /// <summary>
  17. /// Логика взаимодействия для UsialWindow.xaml
  18. /// </summary>
  19. public partial class UsialWindow : Window
  20. {
  21. public UsialWindow()
  22. {
  23. InitializeComponent();
  24. this.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
  25. TBUsial.Text = "Произошла непредвиденная ошибка. Обратитесь к администратору системы.";
  26. }
  27. public UsialWindow(string text)
  28. {
  29. InitializeComponent();
  30. this.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
  31. TBUsial.Text = text;
  32. }
  33. private void Hide_Click(object sender, RoutedEventArgs e)
  34. {
  35. this.Close();
  36. }
  37. }
  38. }