Esempio n. 1
0
        protected void InitStoryLine(StoryEditor theSE, VerseData aVerseData, int nLayoutRow)
        {
            System.Diagnostics.Debug.Assert(!tableLayoutPanel.Controls.ContainsKey(CstrFieldNameStoryLine));
            StoryLineControl aStoryLineCtrl = new StoryLineControl(theSE, this, aVerseData);

            aStoryLineCtrl.Name          = CstrFieldNameStoryLine;
            aStoryLineCtrl.ParentControl = this;

            InsertRow(nLayoutRow);
            tableLayoutPanel.SetColumnSpan(aStoryLineCtrl, 2);
            tableLayoutPanel.Controls.Add(aStoryLineCtrl, 0, nLayoutRow);
        }
Esempio n. 2
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);
        }