// 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); }
// 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 {} }
// 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; }