Пример #1
0
        public static void Main(string[] args)
        {
            Console.WriteLine("CompressedBitmap");
            MySet a = ParseSet(setA, CompressedBitmap.BitmapOf);
            MySet b = ParseSet(setB, CompressedBitmap.BitmapOf);

            a.PrintSet();
            b.PrintSet();
            MySet c = MySet.Merge(a, b, CompressedBitmap.BitmapOf);

            c.PrintSet();

            Console.WriteLine("SimpleBitmap");
            MySet aa = ParseSet(setA, SimpleBitmap.BitmapOf);
            MySet bb = ParseSet(setB, SimpleBitmap.BitmapOf);

            aa.PrintSet();
            bb.PrintSet();
            MySet cc = MySet.Merge(aa, bb, SimpleBitmap.BitmapOf);

            cc.PrintSet();

            Console.WriteLine("CompressedBitmap & SimpleBitmap small");
            MySet s1 = ParseSet(setC, CompressedBitmap.BitmapOf);
            MySet s2 = ParseSet(setC, SimpleBitmap.BitmapOf);

            s1.PrintSet();
            s2.PrintSet();

            Console.WriteLine("CompressedBitmap & SimpleBitmap big");
            MySet ss1 = ParseSet(setD, CompressedBitmap.BitmapOf);
            MySet ss2 = ParseSet(setD, SimpleBitmap.BitmapOf);

            ss1.PrintSet();
            ss2.PrintSet();
            Console.ReadLine();
        }
Пример #2
0
 public void PrintSet()
 {
     MySet.PrintSet(this);
 }