/// <summary>
        /// Metodo per il salvataggio delle impostazioni di interoperabilità semplificata relative a questo
        /// registro
        /// </summary>
        public void SaveSettings()
        {
            DocsPaWR.InteroperabilitySettings interoperabilitySettings = new DocsPaWR.InteroperabilitySettings();
            interoperabilitySettings.IsEnabledInteroperability = this.chkEnableInterop.Checked;
            interoperabilitySettings.KeepPrivate    = this.chkKeepPrivate.Checked;
            interoperabilitySettings.ManagementMode = (ManagementType)Enum.Parse(typeof(ManagementType), this.ddlManagement.SelectedValue);
            interoperabilitySettings.RegistryId     = this.RegistryId;

            int appVal = 0;

            if (Int32.TryParse(this.RuoloResponsabile1.RoleSystemId, out appVal))
            {
                interoperabilitySettings.RoleId = appVal;
            }
            if (Int32.TryParse(this.RuoloResponsabile1.UserSystemId, out appVal))
            {
                interoperabilitySettings.UserId = appVal;
            }

            try
            {
                // Salvataggio delle impostazioni
                bool saved = InteroperabilitaSemplificataManager.SaveSimplifiedInteroperabilitySettings(interoperabilitySettings);
            }
            catch (Exception e)
            {
                throw new Exception(DocsPaUtils.Exceptions.SoapExceptionParser.GetOriginalException(e).Message);
            }
        }
        /// <summary>
        /// Metodo per il caricamento delle impostazioni per un registro
        /// </summary>
        /// <param name="registryId">Id del registro</param>
        private void LoadSettings(string registryId)
        {
            try
            {
                // Caricamento dati
                DocsPaWR.InteroperabilitySettings interoperabilitySettings =
                    InteroperabilitaSemplificataManager.LoadSimplifiedInteroperabilitySettings(registryId);

                // Visualizzazione dati
                this.txtInteroperabilityUrl.Text = InteroperabilitaSemplificataManager.InteroperabilityServiceUrl;
                if (interoperabilitySettings != null)
                {
                    this.RuoloResponsabile1.RoleSystemId = interoperabilitySettings.RoleId.ToString();
                    this.RuoloResponsabile1.UserSystemId = interoperabilitySettings.UserId.ToString();
                    this.chkEnableInterop.Checked        = interoperabilitySettings.IsEnabledInteroperability;
                    this.ddlManagement.SelectedValue     = interoperabilitySettings.ManagementMode.ToString();
                    this.chkKeepPrivate.Checked          = interoperabilitySettings.KeepPrivate;
                }

                this.pnlSettings.Enabled    = this.chkEnableInterop.Checked;
                this.chkKeepPrivate.Enabled = interoperabilitySettings.ManagementMode == ManagementType.M;
            }
            catch (Exception e)
            {
                // Alert ...
            }
        }