示例#1
0
        private void addExegeticalCulturalNoteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (m_theLastButtonClicked != null)
            {
                // the only function of the button here is to add a slot to type a con note
                StoryEditor theSE;
                if (!CheckForProperEditToken(out theSE))
                {
                    return;
                }

                System.Diagnostics.Debug.Assert(m_theLastButtonClicked.Tag is AnchorData);
                AnchorData             theAnchorData = (AnchorData)m_theLastButtonClicked.Tag;
                ExegeticalHelpNoteData anEHN         = theAnchorData.ExegeticalHelpNotes.AddExegeticalHelpNote("Re: " + m_theLastButtonClicked.Text);
                SetExegeticalHelpControls(_ctrlVerse, m_theLastButtonClicked, _font, anEHN.ExegeticalHelpNote, ref m_nNumRows);
                AdjustHeightWithSuspendLayout(null);
                theSE.Modified = true;
            }
            else
            {
                MessageBox.Show("Right-click on one of the buttons to choose which one to add the exegetical or cultural note to", Properties.Resources.IDS_Caption);
            }
        }
 public ExegeticalHelpNoteData(ExegeticalHelpNoteData rhs)
 {
     ExegeticalHelpNote = new StringTransfer(rhs.ExegeticalHelpNote.ToString());
 }