Exemplo n.º 1
0
        private static void Main(string[] args)
        {
            PlayWidthShape();
            ShapeArray sa = new ShapeArray();

            sa.MyList();
        }
Exemplo n.º 2
0
        private static void PlayWithCollection()
        {
            ShapeArray sa = new ShapeArray();

            sa.DimensionalArray();
            sa.MyList();
            sa.MyDictionary();
        }
Exemplo n.º 3
0
 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;
             }
         }
     }
 }
Exemplo n.º 4
0
        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();
        }