Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        internal bool SelectFields()
        {
            var dialog = new FieldsDialog(Module, Fields);

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

            return(true);
        }
Exemplo n.º 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();
        }