OSDN Git Service

Workaround mono winforms bug with ListView in virtual mode RAD-7
authorLatif Khalifa <latifer@streamgrid.net>
Mon, 13 Sep 2010 16:15:34 +0000 (16:15 +0000)
committerLatif Khalifa <latifer@streamgrid.net>
Mon, 13 Sep 2010 16:15:34 +0000 (16:15 +0000)
git-svn-id: https://radegast.googlecode.com/svn/trunk@740 f7a694da-4d33-11de-9ad6-1127a62b9fcd

Radegast/GUI/Consoles/Inventory/InventoryConsole.cs

index d9d1dcf..858da8a 100644 (file)
@@ -2087,11 +2087,20 @@ namespace Radegast
         public void UpdateSearch()
         {
             found = 0;
+
+            if (instance.MonoRuntime)
+            {
+                lstInventorySearch.VirtualMode = false;
+                lstInventorySearch.Items.Clear();
+                lstInventorySearch.VirtualMode = true;
+            }
+
+            lstInventorySearch.VirtualListSize = 0;
             searchString = txtSearch.Text.Trim().ToLower();
             
             if (searchString == string.Empty)
             {
-                lstInventorySearch.VirtualListSize = 0;
+                lblSearchStatus.Text = "0 results";
                 return;
             }