Esempio n. 1
0
        private void MoveSelectedTextToANewLineToolStripMenuItem(StoryEditor theSE)
        {
            System.Diagnostics.Debug.Assert(tableLayoutPanel.Controls.ContainsKey(CstrFieldNameStoryLine));
            StoryLineControl slc = tableLayoutPanel.Controls[CstrFieldNameStoryLine] as StoryLineControl;
            string           strVernacular, strNationalBT, strEnglishBT;

            slc.GetTextBoxValues(out strVernacular, out strNationalBT, out strEnglishBT);

            // all this verse to have it's buttons shown (so the editor can delete now
            //  obsolete comments)
            _verseData.AllowConNoteButtonsOverride();

            copyVerseToClipboardToolStripMenuItem_Click(null, null);
            _myClipboard.VernacularText.SetValue(strVernacular);
            _myClipboard.NationalBTText.SetValue(strNationalBT);
            _myClipboard.InternationalBTText.SetValue(strEnglishBT);
            PasteVerseToIndex(VerseNumber);
            // theSE.AddNewVerse(VerseNumber, strVernacular, strNationalBT, strEnglishBT);
        }