/// <summary>
        /// Handle the reception of an RTNodeChanged object. 
        /// The RTNodeChanged allows to navigate
        /// through pages on the client(s).
        /// </summary>
        /// <param name="nav">Navigation object received</param>
        private void RTNodeChangedReceived(RTNodeChanged nav)
        {
            try
            {
                Log("It's an RTNodeChanged object,");

                // Move to the correct page
                Log(string.Format(CultureInfo.CurrentCulture, 
                    "RTNodeChanged object id: {0 }pageid that will be displayed: {1},", 
                    nav.OrganizationNodeIdentifier.ToString(), 
                    rtDocumentHelper.TOCNodeIdentifierToPageIdentifier(nav.OrganizationNodeIdentifier)));

                int newIndex = rtDocument.Organization.TableOfContents.IndexOf(
                    rtDocument.Organization.TableOfContents[ nav.OrganizationNodeIdentifier ] );
                this.navigateToIndex( newIndex, false );
            }
            catch
            {
                RtlAwareMessageBox.Show(this, Strings.TryResendAllSlidesButton, string.Empty, MessageBoxButtons.OK, 
                    MessageBoxIcon.None, MessageBoxDefaultButton.Button1, (MessageBoxOptions)0);
                ShowPage( pageShowing );
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Handle the reception of an RTNodeChanged object. 
        /// The RTNodeChanged allows to navigate
        /// through pages on the client(s).
        /// </summary>
        /// <param name="nav">Navigation object received</param>
        private void RTNodeChangedReceived(RTNodeChanged nav)
        {
            // Test if we are in slaved navigation mode
            TOCNode node = rtDoc.Organization.TableOfContents[nav.OrganizationNodeIdentifier];
            if( node != null && node.ResourceIdentifier != Guid.Empty && node.Resource != null )
            {
                this.crntPage = node.ResourceIdentifier;

                if( Options.AutoSyncSlides )
                    this.SyncToPage( this, EventArgs.Empty );
            }
        }
        /// <summary>
        /// Handle the reception of an RTNodeChanged object. 
        /// The RTNodeChanged allows to navigate
        /// through pages on the client(s).
        /// </summary>
        /// <param name="nav">Navigation object received</param>
        private void RTNodeChangedReceived(RTNodeChanged nav)
        {
            try
            {
                Log("It's an RTNodeChanged object,");

                // Move to the correct page
                Log("RTNodeChanged object id: " + nav.OrganizationNodeIdentifier.ToString()
                    + " pageid that will be displayed: " + rtDocumentHelper.TOCNodeIdentifierToPageIdentifier(nav.OrganizationNodeIdentifier) + ",");

                int newIndex = rtDocument.Organization.TableOfContents.IndexOf(
                    rtDocument.Organization.TableOfContents[ nav.OrganizationNodeIdentifier ] );
                this.navigateToIndex( newIndex, false );
            }
            catch
            {
                MessageBox.Show( "Conference leader tried to navigate to a page you have not recieved."
                    +"\nTry using the \"Resend All Slides\" button to resolve this issue." );
                ShowPage( pageShowing );
            }
        }