File tree Expand file tree Collapse file tree 3 files changed +46
-1
lines changed Expand file tree Collapse file tree 3 files changed +46
-1
lines changed Original file line number Diff line number Diff line change 90
90
<Compile Include =" Global.asax.cs" >
91
91
<DependentUpon >Global.asax</DependentUpon >
92
92
</Compile >
93
+ <Compile Include =" Models\GraphsCreators.cs" />
94
+ <Compile Include =" Models\Point.cs" />
93
95
<Compile Include =" Properties\AssemblyInfo.cs" />
94
96
</ItemGroup >
95
97
<ItemGroup >
103
105
</ItemGroup >
104
106
<ItemGroup >
105
107
<Folder Include =" App_Data\" />
106
- <Folder Include =" Models\" />
107
108
</ItemGroup >
108
109
<PropertyGroup >
109
110
<VisualStudioVersion Condition =" '$(VisualStudioVersion)' == ''" >10.0</VisualStudioVersion >
Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using System . Linq ;
4
+ using System . Web ;
5
+
6
+ namespace GraphPlot . Models
7
+ {
8
+ public class GraphsCreator
9
+ {
10
+ private List < Point > xyList ;
11
+
12
+
13
+ public List < Point > GetXY ( )
14
+ {
15
+ xyList = new List < Point > ( ) ;
16
+
17
+ for ( int i = 0 ; i < 70 ; i ++ )
18
+ {
19
+ var x = i / 5.0 ;
20
+ var y = Math . Sin ( x ) ;
21
+ xyList . Add ( new Point ( ) { X = x , Y = y } ) ;
22
+ }
23
+
24
+
25
+ return xyList ;
26
+ }
27
+
28
+
29
+
30
+ }
Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using System . Linq ;
4
+ using System . Web ;
5
+
6
+ namespace GraphPlot . Models
7
+ {
8
+ public class Point
9
+ {
10
+ public double X { get ; set ; }
11
+ public double Y { get ; set ; }
12
+
13
+ }
14
+ }
You can’t perform that action at this time.
0 commit comments