Esempio n. 1
0
        internal void Cut()
        {
            ms = new MemoryStream();

            BinaryFormatter bf        = new BinaryFormatter();
            List <Shape>    cutShapes = new List <Shape>();

            foreach (var item in Selection.ToList())
            {
                if (ShapeList.Contains(item))
                {
                    Selection.Clear();
                    ShapeList.Remove(item);
                    cutShapes.Add(item);
                }
            }
            bf.Serialize(ms, cutShapes);

            Clipboard.SetData("My Format", ms);
        }