GlobalMsgNotification.xaml.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using GeekDesk.Constant;
  2. using GeekDesk.Task;
  3. using GeekDesk.Util;
  4. using GeekDesk.ViewModel;
  5. using HandyControl.Controls;
  6. using Quartz;
  7. using System;
  8. using System.Windows;
  9. using System.Windows.Input;
  10. namespace GeekDesk.Control.Other
  11. {
  12. /// <summary>
  13. /// BacklogNotificatin.xaml 的交互逻辑
  14. /// </summary>
  15. public partial class GlobalMsgNotification
  16. {
  17. public Notification ntf;
  18. public GlobalMsgNotification(DialogMsg msg)
  19. {
  20. InitializeComponent();
  21. this.DataContext = msg;
  22. }
  23. public class DialogMsg
  24. {
  25. public string msg;
  26. public string title;
  27. public string Msg
  28. {
  29. get
  30. {
  31. return msg;
  32. }
  33. set
  34. {
  35. msg = value;
  36. }
  37. }
  38. public string Title
  39. {
  40. get
  41. {
  42. return title;
  43. }
  44. set
  45. {
  46. title = value;
  47. }
  48. }
  49. }
  50. private void Close_Click(object sender, RoutedEventArgs e)
  51. {
  52. ntf.Close();
  53. }
  54. }
  55. }