private static void Main(string[] args) { PlayWidthShape(); ShapeArray sa = new ShapeArray(); sa.MyList(); }
private static void PlayWithCollection() { ShapeArray sa = new ShapeArray(); sa.DimensionalArray(); sa.MyList(); sa.MyDictionary(); }
public void BuildArray() { ShapeArray.Clear(); for (int i = 0; i < Image.Width; i++) { for (int j = 0; j < Image.Height; j++) { if (Compare(Image.GetPixel(i, j))) { ShapeArray.Add(new SPoint(i, j)); //FollowShape(new SPoint(i, j)); //break; } } } }
static void PlayWithShape() { Shape a = new Cube(12, 10); Console.WriteLine(a.Volume()); Cube b = new Cube(12, 6); Console.WriteLine(b.Volume()); Square c = new Cube(12, 5); Console.WriteLine(c.Volume()); ShapeArray sharr = new ShapeArray(); sharr.MyDictionary(); sharr.MyList(); }