From f36cfeb68fe1c6161730c654b0276cbc4c887018 Mon Sep 17 00:00:00 2001 From: Markus Ewald Date: Fri, 13 Apr 2007 19:31:53 +0000 Subject: [PATCH] Upgraded to NUnit 2.4.0 git-svn-id: file:///srv/devel/repo-conversion/nuwi@3 d2e56fa2-650e-0410-a79f-9358c0239efd --- Nuclex.Windows.Forms.csproj | 16 ++++++++++++++++ Source/ContainerListView/ContainerListView.cs | 9 ++++----- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/Nuclex.Windows.Forms.csproj b/Nuclex.Windows.Forms.csproj index 503589a..8e5c158 100644 --- a/Nuclex.Windows.Forms.csproj +++ b/Nuclex.Windows.Forms.csproj @@ -81,6 +81,22 @@ false EmbeddedControlCollection + + false + TrackingBar + Component + + + TrackingBar.cs + false + TrackingBar.Designer + + + + + {A696702E-AFAD-45E7-88FA-1E2520E5E746} + Nuclex.Support %28PC%29 + diff --git a/Source/ContainerListView/ContainerListView.cs b/Source/ContainerListView/ContainerListView.cs index 6fdc3ea..a85e52b 100644 --- a/Source/ContainerListView/ContainerListView.cs +++ b/Source/ContainerListView/ContainerListView.cs @@ -20,7 +20,7 @@ namespace Nuclex.Windows.Forms { /// public partial class ContainerListView : System.Windows.Forms.ListView { - /// Initialisiert ein neues ListView-Steuerelement + /// Initializes a new ContainerListView public ContainerListView() { this.embeddedControlClickedHandler = new EventHandler(embeddedControlClicked); @@ -117,13 +117,12 @@ namespace Nuclex.Windows.Forms { if(subItem >= order.Length) throw new IndexOutOfRangeException("SubItem " + subItem + " out of range"); - // Rahmen des gesamten ListViewItems ermitteln, inklusive aller SubItems + // Determine the border of the entire ListViewItem, including all sub items Rectangle itemBounds = item.GetBounds(ItemBoundsPortion.Entire); int subItemX = itemBounds.Left; - // Horizontale Position des SubItems berechnen - // Da die Spaltenreihenfolge geändert werden kann müssen wir - // Columns[order[i]] statt Columns[i] verwenden! + // Find the horizontal position of the sub item. Because the column order can vary, + // we need to use Columns[order[i]] instead of simply doing Columns[i] here! ColumnHeader columnHeader; int i; for(i = 0; i < order.Length; ++i) {