Exemplo n.º 1
0
        public static string Index(string folderPath, IndexerSettings settings)
        {
            Indexer indexer = null;

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

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

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

            case IndexerOutput.Json:
                indexer = new IndexerJson(settings);
                break;
            }

            return(indexer.Index(folderPath));
        }
Exemplo n.º 2
0
 public DirectoryIndexerForm(IndexerSettings settings)
 {
     InitializeComponent();
     Settings = settings;
     pgSettings.SelectedObject = Settings;
     BrowseFolder();
 }
Exemplo n.º 3
0
 public DirectoryIndexerForm(IndexerSettings settings)
 {
     InitializeComponent();
     Settings = settings;
     pgSettings.SelectedObject = Settings;
     BrowseFolder();
 }
Exemplo n.º 4
0
 public DirectoryIndexerForm(IndexerSettings settings)
 {
     InitializeComponent();
     Icon     = ShareXResources.Icon;
     Settings = settings;
     pgSettings.SelectedObject = Settings;
 }
Exemplo n.º 5
0
        public DirectoryIndexerForm(IndexerSettings settings)
        {
            InitializeComponent();
            ShareXResources.ApplyTheme(this);

            Settings = settings;
            pgSettings.SelectedObject = Settings;
        }
Exemplo n.º 6
0
 public DirectoryIndexerForm(IndexerSettings settings)
 {
     InitializeComponent();
     Icon = ShareXResources.Icon;
     Settings = settings;
     pgSettings.SelectedObject = Settings;
     BrowseFolder();
 }
Exemplo n.º 7
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);
        }
Exemplo n.º 8
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));
        }
Exemplo n.º 9
0
        public static string Index(string folderPath, IndexerSettings settings)
        {
            Indexer indexer = null;

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

            return indexer.Index(folderPath);
        }
Exemplo n.º 10
0
 protected Indexer(IndexerSettings indexerSettings)
 {
     settings = indexerSettings;
 }
Exemplo n.º 11
0
 public IndexerJson(IndexerSettings indexerSettings) : base(indexerSettings)
 {
 }
Exemplo n.º 12
0
 protected Indexer(IndexerSettings indexerSettings)
 {
     config = indexerSettings;
 }
Exemplo n.º 13
0
 public IndexerHtml(IndexerSettings indexerSettings) : base(indexerSettings)
 {
 }
Exemplo n.º 14
0
 public IndexerXml(IndexerSettings indexerSettings)
     : base(indexerSettings)
 {
 }
Exemplo n.º 15
0
 public IndexerText(IndexerSettings indexerSettings)
     : base(indexerSettings)
 {
 }
Exemplo n.º 16
0
 public IndexerJson(IndexerSettings indexerSettings) : base(indexerSettings)
 {
 }
Exemplo n.º 17
0
 protected Indexer(IndexerSettings indexerSettings)
 {
     config = indexerSettings;
 }
Exemplo n.º 18
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;
                    URLSharingServiceDestination = defaultTaskSettings.URLSharingServiceDestination;
                }

                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;
                }
            }
        }
Exemplo n.º 19
0
 protected Indexer(IndexerSettings indexerSettings)
 {
     settings = indexerSettings;
 }
Exemplo n.º 20
0
 public IndexerText(IndexerSettings indexerSettings)
     : base(indexerSettings)
 {
 }