31 {
32 view.Nodes.Clear();
33 foreach (Automation.Recording rec in Automation.Recordings.Values)
34 {
35 TreeNode tr = new TreeNode();
36 Node n = new Node(rec, tr, Node.Type.recording);
37 tr.Tag = n;
38 tr.Text = rec.Name;
39 foreach (Automation.Action item in rec.List)
40 {
41 try
42 {
43 TreeNode tn = new TreeNode();
44 tn.Text = item.ToString();
45 Node no = new Node(item, tn, Node.Type.action);
46 no.recording = rec;
47 tn.Tag = no;
48 tr.Nodes.Add(tn);
49 }
50 catch (Exception)
51 {
52
53 }
54 }
55 view.Nodes.Add(tr);
56 }
57
58 propView.Nodes.Clear();
59 foreach (Automation.Recording rec in Automation.Properties.Values)
60 {
61 TreeNode tr = new TreeNode();
62 Node n = new Node(rec, tr, Node.Type.recording);
63 tr.Tag = n;
64 tr.Text = rec.Name;
65 foreach (Automation.Action item in rec.List)
66 {
67 try
68 {
69 TreeNode tn = new TreeNode();
70 tn.Text = item.ToString();
71
72 Node no = new Node(item, tn, Node.Type.action);
73 no.recording = rec;
74 tn.Tag = no;
75 tr.Nodes.Add(tn);
76 }
77 catch (Exception)
78 {
79
80 }
81 }
82 propView.Nodes.Add(tr);
83 }
84 }