internal void SelectFields()
        {
            var         service = (IConfigurationService)GetService(typeof(IConfigurationService));
            SiteLogFile element;

            if (service.Server != null)
            {
                var section2 = service.GetSection("system.applicationHost/sites");
                var parent   = section2.ChildElements["siteDefaults"];
                element = new SiteLogFile(parent.ChildElements["logFile"], parent);
            }
            else
            {
                element = service.Application.GetSite().LogFile;
            }

            var dialog = new FieldsDialog(Module, element);

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

            service.ServerManager.CommitChanges();
        }
Exemple #2
0
        internal bool SelectFields()
        {
            var dialog = new FieldsDialog(Module, Fields);

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

            return(true);
        }
Exemple #3
0
        internal void SelectFields()
        {
            var service = (IConfigurationService)GetService(typeof(IConfigurationService));
            var dialog  = new FieldsDialog(Module, service.Application.GetSite().LogFile);

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

            service.ServerManager.CommitChanges();
        }