You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

NativeJobDetailDisplay.cs 1.2 kB

15 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Drawing;
  5. using System.Data;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using Quartz;
  10. namespace ClickForensics.Quartz.Manager
  11. {
  12. public partial class NativeJobDetailDisplay : UserControl
  13. {
  14. public NativeJobDetailDisplay()
  15. {
  16. InitializeComponent();
  17. this.Load += new EventHandler(NativeJobDetailDisplay_Load);
  18. }
  19. void NativeJobDetailDisplay_Load(object sender, EventArgs e)
  20. {
  21. lblDescription.Text = _detail.Description;
  22. lblGroup.Text = _detail.Group;
  23. lblName.Text = _detail.Name;
  24. loadJobDataMap();
  25. }
  26. private void loadJobDataMap()
  27. {
  28. foreach (var item in _detail.JobDataMap.GetKeys())
  29. {
  30. jobDataListView.Items.Add(new ListViewItem(new string[] { item, _detail.JobDataMap.Get(item).ToString() }));
  31. }
  32. }
  33. public NativeJobDetailDisplay(JobDetail detail)
  34. : this()
  35. {
  36. _detail = detail;
  37. }
  38. private JobDetail _detail;
  39. }
  40. }

No Description