- Timestamp:
- 01/19/09 17:16:36 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CEDMA-Refactoring-Ticket419/HeuristicLab.CEDMA.Charting/BubbleChart.cs
r1151 r1156 28 28 using System.Windows.Forms; 29 29 using HeuristicLab.CEDMA.Core; 30 using HeuristicLab.PluginInfrastructure; 31 using HeuristicLab.Core; 32 using HeuristicLab.CEDMA.DB.Interfaces; 30 33 31 34 namespace HeuristicLab.CEDMA.Charting { … … 67 70 68 71 foreach (var resultsEntry in results.GetEntries()) { 69 if (resultsEntry.Get(X_JITTER) ==null)72 if (resultsEntry.Get(X_JITTER) == null) 70 73 resultsEntry.Set(X_JITTER, random.NextDouble() * 2.0 - 1.0); 71 if (resultsEntry.Get(Y_JITTER) == null)74 if (resultsEntry.Get(Y_JITTER) == null) 72 75 resultsEntry.Set(Y_JITTER, random.NextDouble() * 2.0 - 1.0); 73 76 records.Add(resultsEntry); … … 239 242 } 240 243 } 241 if (primitives.Count() > 0) results.FireChanged();244 if (primitives.Count() > 0) results.FireChanged(); 242 245 } else { 243 246 base.MouseDrag(start, end, button); … … 255 258 } 256 259 257 //public override void MouseDoubleClick(Point point, MouseButtons button) { 258 // if(button == MouseButtons.Left) { 259 // Record r = GetRecord(point); 260 // if(r != null) r.OpenModel(); 261 // } else { 262 // base.MouseDoubleClick(point, button); 263 // } 264 //} 260 public override void MouseDoubleClick(Point point, MouseButtons button) { 261 if (button == MouseButtons.Left) { 262 ResultsEntry entry = GetResultsEntry(point); 263 if (entry != null) { 264 string serializedData = (string)entry.Get(Ontology.PredicateSerializedData.Uri.Replace(Ontology.CedmaNameSpace, "")); 265 var model = (IItem)PersistenceManager.RestoreFromGZip(Convert.FromBase64String(serializedData)); 266 PluginManager.ControlManager.ShowControl(model.CreateView()); 267 } 268 } else { 269 base.MouseDoubleClick(point, button); 270 } 271 } 265 272 } 266 273 }
Note: See TracChangeset
for help on using the changeset viewer.