Changeset 2474 for trunk/sources/HeuristicLab.Logging/3.2
- Timestamp:
- 11/10/09 16:50:26 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Logging/3.2
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Logging/3.2/HeuristicLab.Logging-3.2.csproj
r2328 r2474 17 17 <UpgradeBackupLocation> 18 18 </UpgradeBackupLocation> 19 <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> 19 20 </PropertyGroup> 20 21 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> … … 73 74 <ItemGroup> 74 75 <Reference Include="System" /> 76 <Reference Include="System.Core"> 77 <RequiredTargetFramework>3.5</RequiredTargetFramework> 78 </Reference> 75 79 <Reference Include="System.Data" /> 76 80 <Reference Include="System.Drawing" /> … … 122 126 <Name>HeuristicLab.Charting-3.2</Name> 123 127 </ProjectReference> 128 <ProjectReference Include="..\..\HeuristicLab.Common\3.2\HeuristicLab.Common-3.2.csproj"> 129 <Project>{1FC004FC-59AF-4249-B1B6-FF25873A20E4}</Project> 130 <Name>HeuristicLab.Common-3.2</Name> 131 </ProjectReference> 124 132 <ProjectReference Include="..\..\HeuristicLab.Core\3.2\HeuristicLab.Core-3.2.csproj"> 125 133 <Project>{F43B59AB-2B8C-4570-BC1E-15592086517C}</Project> -
trunk/sources/HeuristicLab.Logging/3.2/HeuristicLabLoggingPlugin.cs
r1927 r2474 33 33 [Dependency(Dependency = "HeuristicLab.Charting-3.2")] 34 34 [Dependency(Dependency = "HeuristicLab.Charting.Data-3.2")] 35 [Dependency(Dependency = "HeuristicLab.Common-3.2")] 35 36 [Dependency(Dependency = "HeuristicLab.Core-3.2")] 36 37 [Dependency(Dependency = "HeuristicLab.Data-3.2")] -
trunk/sources/HeuristicLab.Logging/3.2/LinechartView.cs
r1530 r2474 27 27 using System.Text; 28 28 using System.Windows.Forms; 29 using HeuristicLab.Common; 29 30 using HeuristicLab.Core; 30 31 using HeuristicLab.Data; … … 85 86 protected override void RemoveItemEvents() { 86 87 if(Linechart != null) { 87 Linechart.Values.ItemAdded -= new EventHandler< ItemIndexEventArgs>(Values_ItemAdded);88 Linechart.Values.ItemRemoved -= new EventHandler< ItemIndexEventArgs>(Values_ItemRemoved);88 Linechart.Values.ItemAdded -= new EventHandler<EventArgs<IItem, int>>(Values_ItemAdded); 89 Linechart.Values.ItemRemoved -= new EventHandler<EventArgs<IItem, int>>(Values_ItemRemoved); 89 90 } 90 91 base.RemoveItemEvents(); … … 97 98 base.AddItemEvents(); 98 99 if(Linechart != null) { 99 Linechart.Values.ItemAdded += new EventHandler< ItemIndexEventArgs>(Values_ItemAdded);100 Linechart.Values.ItemRemoved += new EventHandler< ItemIndexEventArgs>(Values_ItemRemoved);100 Linechart.Values.ItemAdded += new EventHandler<EventArgs<IItem, int>>(Values_ItemAdded); 101 Linechart.Values.ItemRemoved += new EventHandler<EventArgs<IItem, int>>(Values_ItemRemoved); 101 102 } 102 103 } … … 144 145 145 146 #region Values Events 146 private delegate void ItemIndexDelegate(object sender, ItemIndexEventArgse);147 private void Values_ItemRemoved(object sender, ItemIndexEventArgse) {147 private delegate void ItemIndexDelegate(object sender, EventArgs<IItem, int> e); 148 private void Values_ItemRemoved(object sender, EventArgs<IItem, int> e) { 148 149 if(InvokeRequired) { 149 150 Invoke(new ItemIndexDelegate(Values_ItemRemoved), sender, e); … … 152 153 } 153 154 } 154 private void Values_ItemAdded(object sender, ItemIndexEventArgse) {155 private void Values_ItemAdded(object sender, EventArgs<IItem, int> e) { 155 156 if(InvokeRequired) { 156 157 Invoke(new ItemIndexDelegate(Values_ItemAdded), sender, e); 157 158 } else { 158 159 Datachart datachart = dataChartControl.Chart; 159 ItemList list = (ItemList)e. Item;160 ItemList list = (ItemList)e.Value; 160 161 datachart.UpdateEnabled = false; 161 162 for (int i = 0; i < list.Count; i++) { … … 163 164 if (list[i] is IntData) value = (double)((IntData)list[i]).Data; 164 165 else value = ((DoubleData)list[i]).Data; 165 datachart.AddDataPoint(i, e. Index, value);166 datachart.AddDataPoint(i, e.Value2, value); 166 167 if (value < minY) minY = value; 167 168 if (value > maxY) maxY = value; -
trunk/sources/HeuristicLab.Logging/3.2/LogView.cs
r1530 r2474 27 27 using System.Text; 28 28 using System.Windows.Forms; 29 using HeuristicLab.Common; 29 30 using HeuristicLab.Core; 30 31 using HeuristicLab.Data; … … 67 68 protected override void RemoveItemEvents() { 68 69 if (Log != null) { 69 Log.Items.ItemAdded -= new EventHandler< ItemIndexEventArgs>(Items_ItemAdded);70 Log.Items.ItemRemoved -= new EventHandler< ItemIndexEventArgs>(Items_ItemRemoved);70 Log.Items.ItemAdded -= new EventHandler<EventArgs<IItem, int>>(Items_ItemAdded); 71 Log.Items.ItemRemoved -= new EventHandler<EventArgs<IItem, int>>(Items_ItemRemoved); 71 72 } 72 73 base.RemoveItemEvents(); … … 79 80 base.AddItemEvents(); 80 81 if (Log != null) { 81 Log.Items.ItemAdded += new EventHandler< ItemIndexEventArgs>(Items_ItemAdded);82 Log.Items.ItemRemoved += new EventHandler< ItemIndexEventArgs>(Items_ItemRemoved);82 Log.Items.ItemAdded += new EventHandler<EventArgs<IItem, int>>(Items_ItemAdded); 83 Log.Items.ItemRemoved += new EventHandler<EventArgs<IItem, int>>(Items_ItemRemoved); 83 84 } 84 85 } … … 106 107 #region ItemList Events 107 108 private delegate void IndexDelegate(int index); 108 private void Items_ItemRemoved(object sender, ItemIndexEventArgse) {109 RemoveItem(e. Index);109 private void Items_ItemRemoved(object sender, EventArgs<IItem, int> e) { 110 RemoveItem(e.Value2); 110 111 } 111 112 private void RemoveItem(int index) { … … 119 120 } 120 121 } 121 private void Items_ItemAdded(object sender, ItemIndexEventArgse) {122 AddItem(e. Index);122 private void Items_ItemAdded(object sender, EventArgs<IItem, int> e) { 123 AddItem(e.Value2); 123 124 } 124 125 private void AddItem(int index) { -
trunk/sources/HeuristicLab.Logging/3.2/PointXYChartView.cs
r1530 r2474 27 27 using System.Text; 28 28 using System.Windows.Forms; 29 using HeuristicLab.Common; 29 30 using HeuristicLab.Core; 30 31 using HeuristicLab.Data; … … 85 86 protected override void RemoveItemEvents() { 86 87 if (PointXYChart != null) { 87 PointXYChart.Values.ItemAdded -= new EventHandler< ItemIndexEventArgs>(Values_ItemAdded);88 PointXYChart.Values.ItemRemoved -= new EventHandler< ItemIndexEventArgs>(Values_ItemRemoved);88 PointXYChart.Values.ItemAdded -= new EventHandler<EventArgs<IItem, int>>(Values_ItemAdded); 89 PointXYChart.Values.ItemRemoved -= new EventHandler<EventArgs<IItem, int>>(Values_ItemRemoved); 89 90 } 90 91 base.RemoveItemEvents(); … … 97 98 base.AddItemEvents(); 98 99 if (PointXYChart != null) { 99 PointXYChart.Values.ItemAdded += new EventHandler< ItemIndexEventArgs>(Values_ItemAdded);100 PointXYChart.Values.ItemRemoved += new EventHandler< ItemIndexEventArgs>(Values_ItemRemoved);100 PointXYChart.Values.ItemAdded += new EventHandler<EventArgs<IItem, int>>(Values_ItemAdded); 101 PointXYChart.Values.ItemRemoved += new EventHandler<EventArgs<IItem, int>>(Values_ItemRemoved); 101 102 } 102 103 } … … 149 150 150 151 #region Values Events 151 private delegate void ItemIndexDelegate(object sender, ItemIndexEventArgse);152 private void Values_ItemRemoved(object sender, ItemIndexEventArgse) {152 private delegate void ItemIndexDelegate(object sender, EventArgs<IItem, int> e); 153 private void Values_ItemRemoved(object sender, EventArgs<IItem, int> e) { 153 154 if (InvokeRequired) { 154 155 Invoke(new ItemIndexDelegate(Values_ItemRemoved), sender, e); … … 157 158 } 158 159 } 159 private void Values_ItemAdded(object sender, ItemIndexEventArgse) {160 private void Values_ItemAdded(object sender, EventArgs<IItem, int> e) { 160 161 if (InvokeRequired) { 161 162 Invoke(new ItemIndexDelegate(Values_ItemAdded), sender, e);
Note: See TracChangeset
for help on using the changeset viewer.