Exemple #1
0
        /// <summary>
        /// Event handler for when the document's signature status changes. This forces the dialog
        /// to refresh the list of signatures and status.
        /// </summary>
        /// <param name="sender">Sender (not used)</param>
        /// <param name="args">Event arguments (not used)</param>
        private void OnSignatureStatusChange(object sender, DocumentSignatureManager.SignatureStatusEventArgs args)
        {
            // Save the selected index of the list box so it can be restored
            int selectedIndex = _listBoxSummary.SelectedIndex;

            RefreshSignatureList(_showRequestDialog);

            _listBoxSummary.SelectedIndex = selectedIndex;
        }
Exemple #2
0
        //------------------------------------------------------
        //
        //  Public Methods
        //
        //------------------------------------------------------

        /// <summary>
        /// Used to be notified of possible DigSig status changes.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>
        public void OnStatusChange(object sender, DocumentSignatureManager.SignatureStatusEventArgs args)
        {
            if ((args != null) && (_type == StatusInfoItemType.DigSig))
            {
                UpdateUI(args.StatusResources);

                // If the Document is not signed, collapse the infobar button.
                if (args.SignatureStatus != SignatureStatus.NotSigned)
                {
                    this.Visibility = Visibility.Visible;
                }
                else
                {
                    this.Visibility = Visibility.Collapsed;
                }
            }
        }