Пример #1
0
 /// <summary>
 /// Sends a "Santa Fe" focus message which can be used by other applications (such as Paratext)
 /// to navigate to the same Scripture reference
 /// </summary>
 /// <param name="currRef"></param>
 public static void SendScrReference(this VerseRef currRef)
 {
     if (currRef != null && currRef.Valid)
     {
         currRef.ChangeVersification(ScrVers.English);
         SantaFeFocusMessageHandler.SendFocusMessage(currRef.ToString());
     }
 }
            protected override void WndProc(ref Message msg)
            {
                if (msg.Msg == SantaFeFocusMessageHandler.FocusMsg)
                {
                    var verseRef = new VerseRef(SantaFeFocusMessageHandler.ReceiveFocusMessage(msg));
                    MessageReceived = verseRef;
                }

                base.WndProc(ref msg);
            }