Example #1
0
 /// <summary>
 /// (Call whenever reference has been changed internally.) Update contents of controls.
 /// </summary>
 void UpdateControls()
 {
     try
     {
         isUpdating  = true;
         uiBook.Text = curRef.Book;
         // does Book=0 have any meaning now? With new VerseRef class, how access intro material?
         uiChapter.Text = curRef.Chapter;
         uiVerse.Text   = allowVerseSegments && VerseSegmentsAvailable?curRef.UnBridge().Verse : curRef.VerseNum.ToString();
     }
     finally
     {
         isUpdating = false;
     }
 }