d84cca5ca122c6783341ebccce4e344b07b3626e
[mono.git] / mcs / class / System.Windows.Forms / System.Windows.Forms / TreeViewEventArgs.cs
1 //
2 // System.Windows.Forms.TreeViewEventArgs
3 //
4 // Author:
5 //  Stubbed out by Jackson Harper (jackson@latitudegeo.com)
6 //      Completed by Dennis Hayes (dennish@raytek.com)
7 // (C) 2002 Ximian, Inc
8 //
9
10 namespace System.Windows.Forms {
11
12         // <summary>
13         // </summary>
14
15     public class TreeViewEventArgs : EventArgs {
16                 private TreeNode node;
17                 private TreeViewAction action;
18                 //
19                 //  --- Public Constructors
20                 //
21                 public TreeViewEventArgs(TreeNode node)
22                 {
23                         this.node = node;
24                 }
25                 public TreeViewEventArgs(TreeNode node, TreeViewAction action)
26                 {
27                         this.node = node;
28                         this.action = action;
29                 }
30                 //
31                 // --- Public Properties
32                 //
33                 public TreeViewAction Action {
34                         get     {
35                                 return action;
36                         }
37                 }
38                 public TreeNode Node {
39                         get {
40                                 return node;
41                         }
42                 }
43         }
44 }