WaitWindow.xaml.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. using System.Windows.Data;
  10. using System.Windows.Documents;
  11. using System.Windows.Input;
  12. using System.Windows.Media;
  13. using System.Windows.Media.Imaging;
  14. using System.Windows.Shapes;
  15. namespace MeterVision.Dlg
  16. {
  17. /// <summary>
  18. /// WaitWindow.xaml 的交互逻辑
  19. /// </summary>
  20. public partial class WaitWindow : Window, INotifyPropertyChanged
  21. {
  22. public event PropertyChangedEventHandler PropertyChanged;
  23. protected void OnPropertyChanged(string propertyName)
  24. {
  25. PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
  26. }
  27. public string TitleInfo { get; set; }
  28. //public void ProgressInfo(string txtInfo)
  29. //{
  30. // txtProgress.Visibility = Visibility.Visible;
  31. // txtProgress.Text = txtInfo;
  32. //}
  33. public WaitWindow(string titleInfo)
  34. {
  35. InitializeComponent();
  36. //txtProgress.Visibility = Visibility.Collapsed;
  37. TitleInfo = titleInfo;
  38. this.DataContext = this;
  39. }
  40. //---------------------------------------------------------------------
  41. }
  42. }