Esempio n. 1
0
        public static string Index(string folderPath, IndexerSettings config)
        {
            Indexer indexer = null;

            switch (config.Output)
            {
                case IndexerOutput.Html:
                    indexer = new IndexerHtml(config);
                    break;
                case IndexerOutput.Txt:
                    indexer = new IndexerText(config);
                    break;
                case IndexerOutput.Xml:
                    indexer = new IndexerXml(config);
                    break;
            }

            return indexer.Index(folderPath);
        }
Esempio n. 2
0
        public static string Index(string folderPath, IndexerSettings config)
        {
            Indexer indexer = null;

            switch (config.Output)
            {
            case IndexerOutput.Html:
                indexer = new IndexerHtml(config);
                break;

            case IndexerOutput.Txt:
                indexer = new IndexerText(config);
                break;

            case IndexerOutput.Xml:
                indexer = new IndexerXml(config);
                break;
            }

            return(indexer.Index(folderPath));
        }
Esempio n. 3
0
 protected Indexer(IndexerSettings indexerSettings)
 {
     config = indexerSettings;
 }
Esempio n. 4
0
 protected Indexer(IndexerSettings indexerSettings)
 {
     config = indexerSettings;
 }
Esempio n. 5
0
 public IndexerXml(IndexerSettings indexerSettings)
     : base(indexerSettings)
 {
 }
Esempio n. 6
0
 public IndexerText(IndexerSettings indexerSettings)
     : base(indexerSettings)
 {
 }
Esempio n. 7
0
 public IndexerHtml(IndexerSettings indexerSettings)
     : base(indexerSettings)
 {
 }
Esempio n. 8
0
 public IndexerText(IndexerSettings indexerSettings)
     : base(indexerSettings)
 {
 }
Esempio n. 9
0
        private void SetDefaultSettings()
        {
            if (Program.DefaultTaskSettings != null)
            {
                TaskSettings defaultTaskSettings = Program.DefaultTaskSettings.Copy();

                if (UseDefaultAfterCaptureJob)
                {
                    AfterCaptureJob = defaultTaskSettings.AfterCaptureJob;
                }

                if (UseDefaultAfterUploadJob)
                {
                    AfterUploadJob = defaultTaskSettings.AfterUploadJob;
                }

                if (UseDefaultDestinations)
                {
                    ImageDestination = defaultTaskSettings.ImageDestination;
                    ImageFileDestination = defaultTaskSettings.ImageFileDestination;
                    TextDestination = defaultTaskSettings.TextDestination;
                    TextFileDestination = defaultTaskSettings.TextFileDestination;
                    FileDestination = defaultTaskSettings.FileDestination;
                    URLShortenerDestination = defaultTaskSettings.URLShortenerDestination;
                    SocialNetworkingServiceDestination = defaultTaskSettings.SocialNetworkingServiceDestination;
                }

                if (UseDefaultGeneralSettings)
                {
                    GeneralSettings = defaultTaskSettings.GeneralSettings;
                }

                if (UseDefaultImageSettings)
                {
                    ImageSettings = defaultTaskSettings.ImageSettings;
                }

                if (UseDefaultCaptureSettings)
                {
                    CaptureSettings = defaultTaskSettings.CaptureSettings;
                }

                if (UseDefaultUploadSettings)
                {
                    UploadSettings = defaultTaskSettings.UploadSettings;
                }

                if (UseDefaultActions)
                {
                    ExternalPrograms = defaultTaskSettings.ExternalPrograms;
                }

                if (UseDefaultIndexerSettings)
                {
                    IndexerSettings = defaultTaskSettings.IndexerSettings;
                }

                if (UseDefaultAdvancedSettings)
                {
                    AdvancedSettings = defaultTaskSettings.AdvancedSettings;
                }
            }
        }