IReport is added
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using FieldVisualizer.Entities.Values.Primitives;
|
||||
using FieldVisualizer.Services.PrimitiveServices;
|
||||
using FieldVisualizer.WindowsOperation;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -21,38 +22,7 @@ namespace FiledVisualzerDemo
|
||||
|
||||
private void RectanglesSetDemo_Click(object sender, EventArgs e)
|
||||
{
|
||||
List<IPrimitiveSet> primitiveSets = new List<IPrimitiveSet>();
|
||||
int imax = 100;
|
||||
int jmax = 100;
|
||||
PrimitiveSet primitiveSet = new PrimitiveSet();
|
||||
primitiveSets.Add(primitiveSet);
|
||||
List<IValuePrimitive> primitives = new List<IValuePrimitive>();
|
||||
primitiveSet.ValuePrimitives = primitives;
|
||||
IValuePrimitive primitive;
|
||||
for (int i = 0; i < imax; i++)
|
||||
{
|
||||
for (int j = 0; j < jmax; j++)
|
||||
{
|
||||
primitive = new RectanglePrimitive() { Height = 10, Width = 20, CenterX = 20 * i, CenterY = 10 * j, Value = -(i + j) };
|
||||
primitives.Add(primitive);
|
||||
}
|
||||
}
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
for (int j = 0; j < 2; j++)
|
||||
{
|
||||
primitive = new CirclePrimitive() { Diameter = 150, CenterX = -200 * i, CenterY = -100 * j, Value = i * 100 + j * 200 };
|
||||
primitives.Add(primitive);
|
||||
}
|
||||
}
|
||||
primitiveSet = new PrimitiveSet();
|
||||
primitives = new List<IValuePrimitive>();
|
||||
primitive = new RectanglePrimitive() { Height = 100, Width = 200, CenterX = 0, CenterY = 0, Value = 100 };
|
||||
primitives.Add(primitive);
|
||||
primitive = new CirclePrimitive() { Diameter = 50, CenterX = 0, CenterY = 0, Value = -100 };
|
||||
primitives.Add(primitive);
|
||||
primitiveSet.ValuePrimitives = primitives;
|
||||
primitiveSets.Add(primitiveSet);
|
||||
var primitiveSets = TestPrimitivesOperation.AddTestPrimitives();
|
||||
FieldViewerOperation.ShowViewer(primitiveSets);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user