AboutForm.xaml.cs 724 B

12345678910111213141516171819202122232425262728
  1. 
  2. using System;
  3. using System.Windows;
  4. using System.Windows.Input;
  5. using SHJX.Service.Common.ReadXML;
  6. namespace SHJX.Service.View.View
  7. {
  8. /// <summary>
  9. /// AboutForm.xaml 的交互逻辑
  10. /// </summary>
  11. public partial class AboutForm : Window
  12. {
  13. public string AboutText => $"Copyright © 2012-{DateTime.Now.Year} Shanghai Jingxin Industrial Development Co.,Ltd. 保留所有权力.";
  14. public AboutForm(ReadConfigUtil config)
  15. {
  16. Owner = Application.Current.MainWindow;
  17. DataContext = this;
  18. InitializeComponent();
  19. }
  20. private void Grid_MouseDown(object sender, MouseButtonEventArgs e)
  21. {
  22. Close();
  23. }
  24. }
  25. }