Esempio n. 1
0
        /// <summary>
        /// 将当前复制列表中的控件,放到指定的月诶安窗口中
        /// </summary>
        static public void pasteOperator()
        {
            ///一个临时列表
            List <Control> vTmp = new List <Control>();

            foreach (Control ctrl in copyList)
            {
                SVPanel svPanel = ctrl as SVPanel;
                vTmp.Add((Control)svPanel.cloneObject());
            }

            ///粘贴事件的发送
            PasteEvent(vTmp);
        }
Esempio n. 2
0
        /// <summary>
        /// 将当前选中列表中的控件存放到复制列表中
        /// </summary>
        static public void copyOperator()
        {
            if (set.Count == 0)
            {
                return;
            }

            copyList.Clear();
            foreach (Control ctrl in set)
            {
                SVPanel svPanel = ctrl as SVPanel;
                copyList.Add((Control)svPanel.cloneObject());
            }
            CopyEvents(new List <Control>(set));
        }