private void Edit()
        {
            var service = (IConfigurationService)this.GetService(typeof(IConfigurationService));
            var section = service.GetSection("system.web/authentication");
            var dialog  = new FormsEditDialog(this.Module, new FormsItem(section.GetChildElement("forms")));

            if (dialog.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            service.ServerManager.CommitChanges();
            this.OnAuthenticationSettingsSaved();
        }
Exemple #2
0
        private void Edit()
        {
            var service = (IConfigurationService)GetService(typeof(IConfigurationService));
            var section = service.GetSection("system.web/authentication");
            var dialog  = new FormsEditDialog(Module, new FormsItem(section.GetChildElement("forms")), Scope == ManagementScope.Server && !PublicNativeMethods.IsProcessElevated);

            if (dialog.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            service.ServerManager.CommitChanges();
            OnAuthenticationSettingsSaved();
        }