예제 #1
0
        // Deep copy

        public object Clone()
        {
            BitmapPlacerList plcl = new BitmapPlacerList();

            for (int i = 0; i < InnerList.Count; i++)
            {
                plcl.Add((BitmapPlacer)((BitmapPlacer)InnerList[i]).Clone());
            }
            return(plcl);
        }
예제 #2
0
        // ISerializable interface implementation

        private Frame(SerializationInfo seri, StreamingContext stmc) : this()
        {
            try {
                m_plcl = (BitmapPlacerList)seri.GetValue("BitmapPlacers", typeof(BitmapPlacerList));
            } catch {
                m_plcl = new BitmapPlacerList();
                m_plcl.Add(new BitmapPlacer());
                m_plcl[0].X       = seri.GetInt32("BitmapX");
                m_plcl[0].Y       = seri.GetInt32("BitmapY");
                m_plcl[0].XBitmap = (XBitmap)seri.GetValue("XBitmap", typeof(XBitmap));
            }

            try {
                m_cHold = seri.GetInt32("HoldCount");
            } catch {}

            try {
                m_ptSpecial = (Point)seri.GetValue("SpecialPoint", typeof(Point));
            } catch {}
        }
예제 #3
0
        // ISerializable interface implementation
        private Frame(SerializationInfo seri, StreamingContext stmc)
            : this()
        {
            try {
                m_plcl = (BitmapPlacerList)seri.GetValue("BitmapPlacers", typeof(BitmapPlacerList));
            } catch {
                m_plcl = new BitmapPlacerList();
                m_plcl.Add(new BitmapPlacer());
                m_plcl[0].X = seri.GetInt32("BitmapX");
                m_plcl[0].Y = seri.GetInt32("BitmapY");
                m_plcl[0].XBitmap = (XBitmap)seri.GetValue("XBitmap", typeof(XBitmap));
            }

            try {
                m_cHold = seri.GetInt32("HoldCount");
            } catch {}

            try {
                m_ptSpecial = (Point)seri.GetValue("SpecialPoint", typeof(Point));
            } catch {}
        }
예제 #4
0
 // Deep copy
 public object Clone()
 {
     BitmapPlacerList plcl = new BitmapPlacerList();
     for (int i = 0; i < InnerList.Count; i++) {
         plcl.Add((BitmapPlacer)((BitmapPlacer)InnerList[i]).Clone());
     }
     return plcl;
 }