Changeset 684
- Timestamp:
- 10/17/08 20:15:12 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Visualization
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization/HeuristicLab.Visualization.csproj
r683 r684 58 58 <DependentUpon>CanvasUI.cs</DependentUpon> 59 59 </Compile> 60 <Compile Include="ChangeType.cs" /> 60 61 <Compile Include="ChartDataModelBase.cs" /> 61 62 <Compile Include="ChartDataRowsModel.cs" /> 63 <Compile Include="ChartDataRowsModelDataChangedHandler.cs" /> 62 64 <Compile Include="ChartDataRowsModelDummy.cs" /> 63 65 <Compile Include="CompositeShape.cs" /> … … 92 94 </ProjectReference> 93 95 </ItemGroup> 96 <ItemGroup> 97 <EmbeddedResource Include="LineChart.resx"> 98 <DependentUpon>LineChart.cs</DependentUpon> 99 </EmbeddedResource> 100 </ItemGroup> 94 101 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 95 102 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. -
trunk/sources/HeuristicLab.Visualization/IChartDataRowsModel.cs
r680 r684 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace HeuristicLab.Visualization { 7 interface IChartDataRowsModel { 1 namespace HeuristicLab.Visualization { 2 public interface IChartDataRowsModel { 3 event ChartDataRowsModelDataChangedHandler DataChanged; 8 4 } 9 5 } -
trunk/sources/HeuristicLab.Visualization/LineChart.Designer.cs
r683 r684 29 29 private void InitializeComponent() 30 30 { 31 components = new System.ComponentModel.Container(); 31 this.SuspendLayout(); 32 // 33 // LineChart 34 // 35 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 32 36 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 37 this.Name = "LineChart"; 38 this.Size = new System.Drawing.Size(552, 390); 39 this.ResumeLayout(false); 40 33 41 } 34 42 -
trunk/sources/HeuristicLab.Visualization/LineChart.cs
r683 r684 1 1 using System; 2 using System.Collections.Generic;3 using System.ComponentModel;4 using System.Drawing;5 using System.Data;6 using System.Linq;7 using System.Text;8 2 using System.Windows.Forms; 9 3 10 namespace HeuristicLab.Visualization 11 { 12 public partial class LineChart : UserControl 13 { 14 public LineChart() 15 { 16 InitializeComponent(); 4 namespace HeuristicLab.Visualization { 5 public partial class LineChart : UserControl { 6 private IChartDataRowsModel model; 7 8 public LineChart() { 9 InitializeComponent(); 10 } 11 12 public IChartDataRowsModel Model { 13 get { return model; } 14 set { 15 if (value == null) { 16 throw new NullReferenceException("Model cannot be null."); 17 17 } 18 19 if (model != null) { 20 throw new InvalidOperationException("Model has already been set."); 21 } 22 23 model = value; 24 25 model.DataChanged += OnDataChanged; 26 } 18 27 } 28 29 private void OnDataChanged(ChangeType type, int dataId, double[] values) { 30 throw new NotImplementedException(); 31 } 32 } 19 33 }
Note: See TracChangeset
for help on using the changeset viewer.