protected void scrPsgFrom_PassageChanged(ScrReference newReference)
{
Logger.WriteEvent(string.Format("New scrPsgFrom reference is {0}", newReference.AsString));
ScrReference scRefFrom = scrPsgFrom.ScReference;
ScrReference scRefTo = scrPsgTo.ScReference;
if (scRefFrom.Book > scRefTo.Book)
{
//set the scrPsgTo to the end of the book
scRefTo.Book = scRefFrom.Book;
scRefTo.Chapter = scRefTo.LastChapter;
scRefTo.Verse = scRefTo.LastVerse;
scrPsgTo.ScReference = scRefTo;
}
}