/[RomCheater]/trunk/RomCheater/Docking/FloatingMemorySectionViewer.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/FloatingMemorySectionViewer.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater/Docking/FloatingMemorySectionViewer.cs	2013/06/07 10:27:53	600
+++ trunk/RomCheater/Docking/FloatingMemorySectionViewer.cs	2013/06/07 11:54:22	601
@@ -68,7 +68,7 @@
                 
                 provider.CloseProvider();
             }
-
+            PopulateMemoryRegions(regions);
         }
         #endregion
 
@@ -82,6 +82,25 @@
         #endregion
 
 
-        public object MEMORY_REGION_INFORMATION { get; set; }
+
+        private void PopulateMemoryRegions(List<MEMORY_REGION_INFORMATION> regions)
+        {
+            lstMemoryRegions.Items.Clear();
+            if (regions.Count == 0) { return; }
+
+            List<ListViewItem> items = new List<ListViewItem>();
+
+            foreach (var region in regions)
+            {
+            }
+
+            if (items.Count == 0) { return; }
+
+            lstMemoryRegions.BeginUpdate();
+            lstMemoryRegions.Items.AddRange(items.ToArray());
+            lstMemoryRegions.EndUpdate();
+
+        }
+
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22