예제 #1
0
        private void Paste()
        {
            IBlock[] blocks = BlockManager.NewBlocks(Clipboard.GetText());
            if (blocks.Length == 0)
            {
                System.Media.SystemSounds.Beep.Play();
                return;
            }

            inSelectionChanged = true;
            foreach (IBlock block in blocks)
            {
                AddBlock(block);
            }

            tbLine.Text         = string.Format("{0} lines", listCode.Items.Count);
            Edited              = true;
            btnDelete.IsEnabled = btnCut.IsEnabled = btnCopy.IsEnabled = btnGroup.IsEnabled = btnUngroup.IsEnabled = false;
            inSelectionChanged  = false;
        }