ErrorInformationDetailsView.xaml.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Windows;
  6. using System.Windows.Controls;
  7. using System.Windows.Data;
  8. using System.Windows.Documents;
  9. using System.Windows.Input;
  10. using System.Windows.Media;
  11. using System.Windows.Media.Imaging;
  12. using System.Windows.Shapes;
  13. namespace Aitex.UI.RecipeEditor
  14. {
  15. /// <summary>
  16. /// Interaction logic for ErrorInformationDetailsView.xaml
  17. /// </summary>
  18. public partial class ErrorInformationDetailsView : Window
  19. {
  20. readonly static Lazy<ErrorInformationDetailsView> _instace =
  21. new Lazy<ErrorInformationDetailsView>(() => new ErrorInformationDetailsView(), true);
  22. public static ErrorInformationDetailsView Instance
  23. {
  24. get
  25. {
  26. return _instace.Value;
  27. }
  28. }
  29. ErrorInformationDetailsView()
  30. {
  31. InitializeComponent();
  32. }
  33. private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
  34. {
  35. Hide();
  36. e.Cancel = true;
  37. }
  38. }
  39. }