Esempio n. 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);
        }
Esempio n. 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 {}
        }
Esempio n. 3
0
        private void PreviewControl_DragDrop(object sender, System.Windows.Forms.DragEventArgs e)
        {
            XBitmap[] axbm = (XBitmap[])e.Data.GetData(typeof(XBitmap[]));
            if (axbm == null)
            {
                return;
            }

            BitmapPlacerList plcl = Globals.ActiveStrip[Globals.ActiveFrame].BitmapPlacers;

            foreach (XBitmap xbm in axbm)
            {
                BitmapPlacer plc = new BitmapPlacer();
                plc.X       = 0;
                plc.Y       = 0;
                plc.XBitmap = xbm;
                plcl.Insert(0, plc);
            }

            Globals.ActiveDocument.Dirty = true;
            Globals.OnFrameContentChanged(this, new EventArgs());
        }
Esempio n. 4
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 {}
        }
Esempio n. 5
0
 public Frame()
 {
     m_plcl = new BitmapPlacerList();
 }
Esempio n. 6
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;
 }
Esempio n. 7
0
 public Frame()
 {
     m_plcl = new BitmapPlacerList();
 }