System.Windows.Forms/TreeViewDrawMode.cs
System.Windows.Forms/TreeViewEventArgs.cs
System.Windows.Forms/TreeViewEventHandler.cs
+System.Windows.Forms/TreeViewHitTestInfo.cs
System.Windows.Forms/TreeViewHitTestLocations.cs
System.Windows.Forms/TreeViewImageIndexConverter.cs
System.Windows.Forms/TypeValidationEventArgs.cs
+2007-03-05 Jackson Harper <jackson@ximian.com>
+
+ * TreeViewHitTestInfo.cs: implement.
+
2007-03-05 Jackson Harper <jackson@ximian.com>
* InternalWindowManager.cs: class status fix.
--- /dev/null
+//
+// TreeViewHitTestLocations.cs
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (c) 2007 Novell, Inc.
+//
+// Authors:
+// Jackson Harper (jackson@ximian.com)
+//
+
+
+#if NET_2_0
+
+namespace System.Windows.Forms {
+
+ public class TreeViewHitTestInfo {
+
+ private TreeNode node;
+ private TreeViewHitTestLocations location;
+
+ public TreeViewHitTestInfo (TreeNode node, TreeViewHitTestLocations location)
+ {
+ this.node = node;
+ this.location = location;
+ }
+
+ public TreeNode Node {
+ get { return node; }
+ }
+
+ public TreeViewHitTestLocations Location {
+ get { return location; }
+ }
+ }
+}
+
+#endif
+
System.Windows.Forms/TrackBarTest.cs
System.Windows.Forms/TreeNodeCollectionTest.cs
System.Windows.Forms/TreeNodeTest.cs
+System.Windows.Forms/TreeViewHitTestInfoTest.cs
System.Windows.Forms/TreeViewTest.cs
System.Windows.Forms/UpDownTest.cs
System.Windows.Forms/UserControlTest.cs
--- /dev/null
+//
+// Copyright (c) 2007 Novell, Inc.
+//
+// Authors:
+// Jackson Harper (jackson@ximian.com)
+//
+
+using System;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Threading;
+using System.ComponentModel;
+using System.Runtime.Remoting;
+
+using NUnit.Framework;
+
+#if NET_2_0
+namespace MonoTests.System.Windows.Forms {
+
+ [TestFixture]
+ public class TreeViewHitTestInfoTest {
+
+ [Test]
+ public void TestCtor ()
+ {
+ TreeViewHitTestInfo t = new TreeViewHitTestInfo (null, TreeViewHitTestLocations.None);
+
+ Assert.AreEqual (t.Node, null, "null-1");
+ Assert.AreEqual (t.Location, TreeViewHitTestLocations.None, "null-2");
+
+ t = new TreeViewHitTestInfo (null, TreeViewHitTestLocations.Image);
+
+ Assert.AreEqual (t.Node, null, "loc-1");
+ Assert.AreEqual (t.Location, TreeViewHitTestLocations.Image, "loc-2");
+
+ TreeNode tn = new TreeNode ("test");
+ t = new TreeViewHitTestInfo (tn, TreeViewHitTestLocations.PlusMinus);
+
+ Assert.AreEqual (t.Node, tn, "node-1");
+ Assert.AreEqual (t.Location, TreeViewHitTestLocations.PlusMinus);
+ }
+
+ [Test]
+ public void TestBadLocation ()
+ {
+ TreeViewHitTestInfo t = new TreeViewHitTestInfo (null, (TreeViewHitTestLocations) (-1));
+
+ Assert.AreEqual (t.Node, null, "bad-loc-1");
+ Assert.AreEqual ((int) t.Location, -1, "bad-loc-2");
+ }
+ }
+
+}
+#endif