Ejemplo n.º 1
0
        public Syston2020()
        {
            Name         = "Syston Model Railway Society";
            Location     = new SilebyCommunityCentre();
            EventDates   = "15th February 2020";
            Descrption   = "Leicester Model Railway Show. Sileby Community Centre, High ST, Sileby, Leicester. LE12 7RX";
            ImagesPath   = Constants.RawDataPath + @"ModelEvents\2020-02-15 Syston Model Railway Society";
            TripDate     = new DateTime(2020, 02, 16);
            YouTubeLink  = "https://www.youtube.com/embed/i6PBrCMCTHg";
            ImageFolder  = "20200215-Syston";
            Title        = "Syston Model Railway Society 2020";
            ImagePreview = "P2157640-Newton-east-Syston-model-railway-thumb.JPG";

            Layouts.Add(new LayoutDetails("Cumanavago", Gauges.OO_Gauge));
            Layouts.Add(new LayoutDetails("Lisworth Bay", Gauges.N_Gauge, "01 Lisworth Bay"));
            Layouts.Add(new LayoutDetails("Southgate DMU", Gauges.OO_Gauge, "02 Southgate Dmu"));
            Layouts.Add(new LayoutDetails("Newtown East", Gauges.OO_Gauge, "03 Newton East"));
            Layouts.Add(new LayoutDetails("Netherwood Sidings", Gauges.O_Gauge, "04 Netherwood Sidings"));
            Layouts.Add(new LayoutDetails("Tudwich Road Sidings", Gauges.O_Gauge, "05 Tudwick Road Sidings"));
            Layouts.Add(new LayoutDetails(LayoutNames.Myton, Gauges.OO_Gauge, "06 Myton"));
            Layouts.Add(new LayoutDetails("Power Station", Gauges.N_Gauge, "07 Power Station"));
            Layouts.Add(new LayoutDetails("Heath Green", Gauges.OO_Gauge, "08 Heath Green"));
            Layouts.Add(new LayoutDetails("Tennis Court Sidings", Gauges.N_Gauge, "09 Tennis Court Sidings"));
            Layouts.Add(new LayoutDetails("Karolina Falls", Gauges.On30_Gauge, "10 Karolina Falls"));
            Layouts.Add(new LayoutDetails("Harrowby Hill MPD", Gauges.OO_Gauge, "12 Harrowby Hill MPD"));
            Layouts.Add(new LayoutDetails("Kozel Cement", Gauges.HO_Gauge, "13 Kozel Cement"));

            Keywords.AddRange(ModelEventKeywords());
            Keywords.AddRange(new string[] { "Syston", "Syston Model Railway Society", "Leicester Model Railway Show" });
        }
Ejemplo n.º 2
0
        public Fragment Append(Fragment next)
        {
            Text = Text + next.Text;
            Keywords.AddRange(next.Keywords);

            return(this);
        }
Ejemplo n.º 3
0
        public Kirkby2021()
        {
            Name         = "The Elizabethan Railway Society Exhibition";
            Location     = new TheSummitCentreKirkby();
            EventDates   = "10th October 2021";
            Descrption   = "The Elizabethan Railway Society Exhibition at Kirkby-In-Ashfield.";
            ImagesPath   = Constants.RawDataPath + @"ModelEvents\2021-10-10 Kirkby-In-Ashfield Model Railway Exhibition";
            TripDate     = new DateTime(2021, 10, 10);
            YouTubeLink  = "https://www.youtube.com/embed/7NUNQLOYvyM";
            ImageFolder  = "20211010-Kirkby";
            Title        = "The Elizabethan Railway Society Exhibition 2021";
            ImagePreview = "PA105301-2021-10-10-Kirkby-in-ashfield-North-road-thumb.JPG";

            Layouts.Add(new LayoutDetails("Sutton-in-Ashfield Town", Gauges.OO_Gauge, "Sutton-in-Ashfield Town"));
            Layouts.Add(new LayoutDetails("Cumanavago", Gauges.OO_Gauge, "Cumanavago"));
            Layouts.Add(new LayoutDetails("Westbrook", Gauges.N_Gauge, "Westbrook"));
            Layouts.Add(new LayoutDetails("North Road", Gauges.N_Gauge, "North Road"));
            Layouts.Add(new LayoutDetails("Avyn-a-llyin", Gauges.OO9_Gauge, "Avyn-a-llyin"));
            Layouts.Add(new LayoutDetails("Karolina Falls", Gauges.On30_Gauge, "Karolina Falls"));
            Layouts.Add(new LayoutDetails("St. Marys", Gauges.O165_Gauge, "St. Marys"));
            Layouts.Add(new LayoutDetails("Industrivej", Gauges.HO_Gauge, "Industrivej"));
            Layouts.Add(new LayoutDetails("High Level Junction", Gauges.N_Gauge, "High Level Junction"));
            Layouts.Add(new LayoutDetails("Cardboard Works", Gauges.N_Gauge, "Cardboard Works"));
            Layouts.Add(new LayoutDetails("Kirkby-in-Ashfield MPD", Gauges.OO_Gauge, "Kirkby-in-Ashfield MPD"));

            Keywords.AddRange(ModelEventKeywords());
            Keywords.AddRange(new string[] {
                "Kirkby-In-Ashfield",
                "The Elizabethan Railway Society Exhibition",
                "Kirkby-In-Ashfield Model Railway"
            });
        }
        public Hinckley2021()
        {
            Name         = "Hinckley Model Railway Show";
            Location     = new TheForrayanCentreHinckley();
            EventDates   = "30th October 2021";
            Descrption   = "Hinckley Model Railway Show at Hinckley, Leicestershire .";
            ImagesPath   = Constants.RawDataPath + @"ModelEvents\2021-10-30 Hinckley Model Railway Show";
            TripDate     = new DateTime(2021, 10, 30);
            YouTubeLink  = "https://www.youtube.com/embed/GYXOvy2pk6w";
            ImageFolder  = "20211030-Hinckley";
            Title        = "Hinckley Model Railway Show 2021";
            ImagePreview = "PA305806-2021-10-30-Hinckley-model-show-thumb.JPG";

            Layouts.Add(new LayoutDetails("Buxworth", Gauges.O_Gauge, "01 Buxworth"));
            Layouts.Add(new LayoutDetails("The Electric Tram", Gauges.N_Gauge, "07 The Electric Tram"));
            Layouts.Add(new LayoutDetails("Robinson Heath", Gauges.N_Gauge, "09 Robinson Heath"));
            Layouts.Add(new LayoutDetails("Canal Park and Station", Gauges.OO_Gauge, "10 Canal Park and Station"));
            Layouts.Add(new LayoutDetails("Badgers Hollow", Gauges.OO_Gauge, "15 Badgers Hollow"));
            Layouts.Add(new LayoutDetails("Magna Park", Gauges.OO_Gauge, "17 Magna Park"));
            Layouts.Add(new LayoutDetails("St Ruth", Gauges.N_Gauge, "18 St. Ruth"));

            Keywords.AddRange(ModelEventKeywords());
            Keywords.AddRange(new string[] {
                "The Forrayan Centre",
                "Hinckley Model Railway Show",
                "Railway Show at Hinckley"
            });
        }
        public Ilkeston2020()
        {
            Name         = "Ilkeston (Woodside) Model Railway Club";
            Location     = new HeanorMinersWelfareIlkeston();
            EventDates   = "23rd February 2020";
            Descrption   = "Heanor Miners Welfare, Ilkeston Road, Heanor, Derbyshire DE75 7DT";
            ImagesPath   = Constants.RawDataPath + @"ModelEvents\2020-02-23 Ilkeston (Woodside) Model Railway Club";
            TripDate     = new DateTime(2020, 02, 23);
            YouTubeLink  = "https://www.youtube.com/embed/K-yUlJL_O6I";
            ImageFolder  = "20200223-Ilkeston";
            Title        = "Ilkeston (Woodside) Model Railway Club";
            ImagePreview = "P2237873-Avyn-A-Llyin-Ilkeston-thumb.JPG";

            Layouts.Add(new LayoutDetails("Thomas the Tank Layout", Gauges.OO_Gauge));
            Layouts.Add(new LayoutDetails("Neuburg", Gauges.HO_Gauge, "02 Neuburg"));
            Layouts.Add(new LayoutDetails("Avyn-A-Llyin", Gauges.OO9_Gauge, "03 Avyn-A-Llyin"));
            Layouts.Add(new LayoutDetails("Rothbury", Gauges.OO_Gauge, "04 Rothbury"));
            Layouts.Add(new LayoutDetails("Brookfield N (USA Based)", Gauges.NONE, "06 Brookfield N"));
            Layouts.Add(new LayoutDetails("Poplar Sidings", Gauges.OO_Gauge, "07 Poplar Sidings"));
            Layouts.Add(new LayoutDetails("Glenellen Castle", Gauges.N_Gauge, "08 Glenellen Castle"));
            Layouts.Add(new LayoutDetails("Winter and Summer Hornby", Gauges.Dublo3Rail, "11 Winter and Summer Hornby Dublo 3 Rail"));
            Layouts.Add(new LayoutDetails("Malcolm Hughes Vintage Trains", Gauges.Mixed_Gauge, "10 Malcolm Hughes Vintage Trains"));

            Keywords.AddRange(ModelEventKeywords());
            Keywords.AddRange(new string[] { "Ilkeston", "Ilkeston (Woodside) Model Railway Club", "Ilkeston (Woodside) Model Railway", "Heanor Miners Welfare", "Heanor Model Railway" });
        }
        public Clifton2022()
        {
            Name         = "Nottingham Model Railway Society";
            Location     = new HighbankCommunityCentreNottingham();
            EventDates   = "26th February 2022";
            Descrption   = "Nottingham Model Railway Society's Spring Show at Clifton, Nottingham";
            ImagesPath   = Constants.RawDataPath + @"ModelEvents\2022-02-26 Clifton Model Railway Show";
            TripDate     = new DateTime(2022, 02, 26);
            YouTubeLink  = "https://www.youtube.com/embed/m3G7lo75vaE";
            ImageFolder  = "20220226-Clifton";
            Title        = "Nottingham Model Railway Society";
            ImagePreview = "P2266927-2022-02-26-Netherwood-sidings-thumb.JPG";

            Layouts.Add(new LayoutDetails("Taste of Alber", Gauges.TTE_Gauge, "Taste of Alber"));
            Layouts.Add(new LayoutDetails("North Haston", Gauges.HO_Gauge, "North Haston"));
            Layouts.Add(new LayoutDetails("Netherwood Sidings", Gauges.O_Gauge, "Netherwood Sidings"));
            Layouts.Add(new LayoutDetails("Hazelby Ballast Loader", Gauges.N_Gauge, "Hazelby Ballast Loader"));
            Layouts.Add(new LayoutDetails("Welby Lane RTC", Gauges.OO_Gauge, "Welby Lane RTC"));
            Layouts.Add(new LayoutDetails("Junesdale", Gauges.OO_Gauge, "Junesdale"));
            Layouts.Add(new LayoutDetails("Britannia Mills", Gauges.OO_Gauge, "Britannia Mills"));
            Layouts.Add(new LayoutDetails("Hollington Quarry", Gauges.OO9_Gauge, "Hollington Quarry"));
            Layouts.Add(new LayoutDetails("East Midlands Fremo Group", Gauges.HO_Gauge, "East Midlands Fremo Group"));

            Keywords.AddRange(ModelEventKeywords());
            Keywords.AddRange(new string[] {
                "Clifton, Nottingham",
                "Nottingham Model Railway Society",
                "Clifton Model Railway Exhibition"
            });
        }
Ejemplo n.º 7
0
        public Bookmark(AnalysisResults analysisResults) : this()
        {
            Title = analysisResults.Metadata.Title;
            Url   = analysisResults.RetrievedUrl;

            // NOTE: categories, concepts and keywords are assumed to be in order from the natural language processor
            Categories.AddRange(analysisResults.Categories.Select(c => c.Label));
            Concepts.AddRange(analysisResults.Concepts.Select(c => c.Text).ToList());
            Keywords.AddRange(analysisResults.Keywords.Select(k => k.Text).ToList());
        }
Ejemplo n.º 8
0
        public Burton2019()
        {
            Location     = new TheNationalBreweryCentre();
            Name         = "Burton Model Railex";
            EventDates   = "3rd November 2019";
            Descrption   = "Burton Model Railex 2019 at the National Brewery Centre.";
            ImagesPath   = Constants.RawDataPath + @"ModelEvents\2019-11-03 BurtonModelRailex";
            TripDate     = new DateTime(2019, 11, 03);
            YouTubeLink  = "https://www.youtube.com/embed/gADZzAauDuU";
            ImageFolder  = "20191103-Burton";
            Title        = "Burton Model Railex 2019";
            ImagePreview = "PB037041-Burton-model-railex-thumb.jpg";

            Keywords.AddRange(ModelEventKeywords());
            Keywords.AddRange(new string[] { "Burton", "Burton Model Railex" });
        }
        public Kettering2019()
        {
            Name         = "Kettering Model Railway Exhibition";
            Location     = new GreenfieldsPrimarySchoolKettering();
            EventDates   = "14th September 2019";
            Descrption   = "Kettering and District Model Railway Society Annual Model Railway Exhibition";
            ImagesPath   = Constants.RawDataPath + @"ModelEvents\2019-09-14 Kettering Model Railway Exhibition";
            TripDate     = new DateTime(2019, 09, 14);
            YouTubeLink  = "https://www.youtube.com/embed/DzjtAOowBKE";
            ImageFolder  = "20190914-Kettering";
            Title        = "Kettering Model Railway Exhibition 2019";
            ImagePreview = "P9145561-thumb.jpg";

            Keywords.AddRange(ModelEventKeywords());
            Keywords.AddRange(new string[] { "Kettering", "Kettering Model Railway Exhibition", });
        }
Ejemplo n.º 10
0
        public Loughborough2019()
        {
            Name         = "Loughborough Model Railway Exhibition";
            Location     = new GrammarSchoolLoughborough();
            EventDates   = "31st August and 1st September 2019";
            Descrption   = "Loughborough Model Railway Exhibition";
            ImagesPath   = Constants.RawDataPath + @"ModelEvents\2019-08-31 Loughborough model railway exhibition 2019";
            TripDate     = new DateTime(2019, 08, 31);
            YouTubeLink  = "https://www.youtube.com/embed/oFrYD7NMH-8";
            ImageFolder  = "20190831-Loughborough";
            Title        = "Loughborough Model Railway Exhibition 2019";
            ImagePreview = "P8315301-thumb.jpg";

            Keywords.AddRange(ModelEventKeywords());
            Keywords.AddRange(new string[] { "Loughborough", "Loughborough Model Railway Exhibition", });
        }
        public Woodthorpe2019()
        {
            Name         = "Woodthorpe Model Railway Club";
            Location     = new SherwoodCommunityCentreSherwood();
            EventDates   = "26 October 2019";
            Descrption   = "Woodthorpe Model Railway Club";
            ImagesPath   = Constants.RawDataPath + @"ModelEvents\2019-10-26 Woodthorpe Model Railway Club";
            TripDate     = new DateTime(2019, 10, 26);
            YouTubeLink  = "https://www.youtube.com/embed/rXa8fywTtLg";
            ImageFolder  = "20191026-Woodthorpe";
            Title        = "Woodthorpe Model Railway Club 2019";
            ImagePreview = "PA266852-Woodthorpe-Model-thumb.jpg";

            Keywords.AddRange(ModelEventKeywords());
            Keywords.AddRange(new string[] { "Woodthorpe", "Woodthorpe Model Railway Club" });
        }
Ejemplo n.º 12
0
        public Kirkby2019()
        {
            Name         = "The Elizabethan Railway Society Exhibition";
            Location     = new TheSummitCentreKirkby();
            EventDates   = "12th October 2019";
            Descrption   = "The Elizabethan Railway Society Exhibition at Kirkby-In-Ashfield.";
            ImagesPath   = Constants.RawDataPath + @"ModelEvents\2019-10-12 Kirkby-In-Ashfield Model Railway Exhibition";
            TripDate     = new DateTime(2019, 10, 12);
            YouTubeLink  = "https://www.youtube.com/embed/yP6tlbtXYxA";
            ImageFolder  = "20191012-Kirkby";
            Title        = "The Elizabethan Railway Society Exhibition 2019";
            ImagePreview = "PA126400-Willen-end-Kirkby-In-Ashfield-thumb.jpg";

            Keywords.AddRange(ModelEventKeywords());
            Keywords.AddRange(new string[] { "Kirkby-In-Ashfield", "The Elizabethan Railway Society Exhibition", "Kirkby-In-Ashfield Model Railway" });
        }
        public Lichfield2019()
        {
            Name         = "Lichfield Model Railways";
            Location     = new TheLifeChurchLichfield();
            EventDates   = "21st September 2019";
            Descrption   = "Trent Valley Model Railway Society at The Life Church, Netherstowe, Lichfield, Staffordshire WS13 6TS";
            ImagesPath   = Constants.RawDataPath + @"ModelEvents\2019-09-21 Lichfield Model Railways";
            TripDate     = new DateTime(2019, 09, 21);
            YouTubeLink  = "https://www.youtube.com/embed/26L2peFd8og";
            ImageFolder  = "20190921-Lichfield";
            Title        = "Lichfield Model Railways 2019";
            ImagePreview = "P9215780-thumb.jpg";

            Keywords.AddRange(ModelEventKeywords());
            Keywords.AddRange(new string[] { "Lichfield", "Lichfield Model Railways", "Trent Valley Model Railway Society", "TVMRS" });
        }
        public Linclon2020March()
        {
            Name         = "Newark - Lincoln Model Rail Club General Exhibition";
            Location     = new NewarkShowground();
            EventDates   = "Saturday 29th February & Sunday 1st March 2020";
            Descrption   = "Lincoln Model Rail Club General Exhibition";
            ImagesPath   = Constants.RawDataPath + @"ModelEvents\2020-02-29 NewarkLincolnModelRailClub";
            TripDate     = new DateTime(2020, 02, 29);
            YouTubeLink  = "https://www.youtube.com/embed/gHkPSd4i8_0";
            ImageFolder  = "20200229-Newark";
            Title        = "Lincoln Model Rail Club General Exhibition 2020";
            ImagePreview = "P2298149-Dorehill-sT-Lincoln-model-rail-club.Stephens-Lincoln-model-rail-club-thumb.JPG";

            Layouts.Add(new LayoutDetails("Ambleton Vale", Gauges.N_Gauge, "Ambleton Vale"));
            Layouts.Add(new LayoutDetails("Arnold Lane", Gauges.OO_Gauge, "Arnold Lane"));
            Layouts.Add(new LayoutDetails("Barden", Gauges.O_Gauge, "Barden"));
            Layouts.Add(new LayoutDetails("Bedford Road", Gauges.O_Gauge, "Bedford Road"));
            Layouts.Add(new LayoutDetails("Blackgang", Gauges.NONE, "Blackgang"));
            Layouts.Add(new LayoutDetails("Breydon", Gauges.OO_Gauge, "Breydon"));
            Layouts.Add(new LayoutDetails("Caroline Concrete Works", Gauges.NONE, "Caroline Concrete Works"));
            Layouts.Add(new LayoutDetails("Croft Mill Wharf", Gauges.O_Gauge, "Croft Mill Wharf"));
            Layouts.Add(new LayoutDetails("Croft SPA", Gauges.N_Gauge, "Croft SPA"));
            Layouts.Add(new LayoutDetails("Cumanavago", Gauges.OO_Gauge));
            Layouts.Add(new LayoutDetails("Dorehill ST. Stephens", Gauges.OO_Gauge, "Dorehill ST. Stephens"));
            Layouts.Add(new LayoutDetails("Emsworth", Gauges.OO_Gauge, "Emsworth"));
            Layouts.Add(new LayoutDetails("Glenellen Castle", Gauges.N_Gauge, "Glenellen Castle"));
            Layouts.Add(new LayoutDetails("Hartley Poole", Gauges.N_Gauge, "Hartley Poole"));
            Layouts.Add(new LayoutDetails("Hollington Quarry", Gauges.OO9_Gauge));
            Layouts.Add(new LayoutDetails("Kleine Rundfahrt", Gauges.N_Gauge_Continental, "Kleine Rundfahrt"));
            Layouts.Add(new LayoutDetails("Kozel Cement", Gauges.HO_Gauge));
            Layouts.Add(new LayoutDetails("Norman Colliery", Gauges.O_Gauge, "Norman Colliery"));
            Layouts.Add(new LayoutDetails("Northallerton", Gauges.N_Gauge, "Northallerton"));
            Layouts.Add(new LayoutDetails("Obervaz", Gauges.H0mNarrowGauge, "Obervaz"));
            Layouts.Add(new LayoutDetails("Roberts Road", Gauges.N_Gauge, "Roberts Road"));
            Layouts.Add(new LayoutDetails("Salthaven Quay", Gauges.O_Gauge, "Salthaven Quay"));
            Layouts.Add(new LayoutDetails("Shaken & Not Stirred", Gauges.NONE));
            Layouts.Add(new LayoutDetails("Spilsby", Gauges.NONE, "Spilsby"));
            Layouts.Add(new LayoutDetails("Stamford East", Gauges.N_Gauge, "Stamford East"));
            Layouts.Add(new LayoutDetails("The Power Station", Gauges.N_Gauge, "The Power Station"));
            Layouts.Add(new LayoutDetails("Thorncliffe", Gauges.OO_Gauge, "Thorncliffe"));
            Layouts.Add(new LayoutDetails("Welby Lane", Gauges.NONE, "Welby Lane"));
            Layouts.Add(new LayoutDetails("Worlds Way", Gauges.OO_Gauge, "Worlds Way"));
            Layouts.Add(new LayoutDetails(LayoutNames.Myton, Gauges.OO_Gauge, "Myton"));

            Keywords.AddRange(ModelEventKeywords());
            Keywords.AddRange(new string[] { "Linclon", "L&DMRC", "Lincoln Model Rail Club", "Newark Showground", "General Exhibition" });
        }
        public Linclon2019()
        {
            Name         = "Newark - Lincoln Model Rail Club Post Modernisation Exhibition";
            Location     = new NewarkShowground();
            EventDates   = "19th and 20th October 2019";
            Descrption   = "Lincoln Model Rail Club Post Modernisation Exhibition";
            ImagesPath   = Constants.RawDataPath + @"ModelEvents\2019-10-19 Newark Model LincolnModelRailClub";
            TripDate     = new DateTime(2019, 10, 19);
            YouTubeLink  = "https://www.youtube.com/embed/sfhv8iYXiYU";
            ImageFolder  = "20191019-Lincoln";
            Title        = "Lincoln Model Rail Club 2019";
            ImagePreview = "PA196601-Newark-Model-Lincoln-model-rail-club-Crimson-road-thumb.JPG";

            Keywords.AddRange(ModelEventKeywords());
            Keywords.AddRange(new string[] { "Linclon", "Lincoln Model Rail Club", "Newark Showground", "Post Modernisation Exhibition" });

            Layouts.Add(new LayoutDetails("Crimson Road", Gauges.NONE, "CrimsonRoad"));
            Layouts.Add(new LayoutDetails("Cumanavago", Gauges.NONE, "Cumanavago"));
            Layouts.Add(new LayoutDetails("Dovington Camp", Gauges.NONE, "DovingtonCamp"));
            Layouts.Add(new LayoutDetails("Eight Dollar Canyon", Gauges.NONE, "EightDollarCanyon"));
            Layouts.Add(new LayoutDetails("Euxton Junction", Gauges.NONE, "EuxtonJunction"));
            Layouts.Add(new LayoutDetails("Gillingbourne", Gauges.NONE, "Gillingbourne"));
            Layouts.Add(new LayoutDetails("Holland Beck", Gauges.NONE, "HollandBeck"));
            Layouts.Add(new LayoutDetails("Illie Town", Gauges.NONE, "IllieTown"));
            Layouts.Add(new LayoutDetails("K Street Yard", Gauges.NONE, "KStreetYard"));
            Layouts.Add(new LayoutDetails("Lea Green Yard", Gauges.NONE, "LeaGreenYard"));
            Layouts.Add(new LayoutDetails("Loch Tat", Gauges.NONE, "LochTat"));
            Layouts.Add(new LayoutDetails("Low Moor", Gauges.NONE, "LowMoor"));
            Layouts.Add(new LayoutDetails("Lynchwood Sidings", Gauges.NONE, "LynchwoodSidings"));
            Layouts.Add(new LayoutDetails("Norton Folgate", Gauges.NONE, "NortonFolgate"));
            Layouts.Add(new LayoutDetails("Oil DrumLane", Gauges.NONE, "OilDrumLane"));
            Layouts.Add(new LayoutDetails("Penna Lane", Gauges.NONE, "PennaLane"));
            Layouts.Add(new LayoutDetails("Sutherland Street", Gauges.NONE, "SutherlandStreet"));
            Layouts.Add(new LayoutDetails("Titheridge Junction", Gauges.NONE, "TitheridgeJunction"));
            Layouts.Add(new LayoutDetails("Weaver Hill", Gauges.NONE, "WeaverHill"));
            Layouts.Add(new LayoutDetails("West Street Station", Gauges.NONE, "WestStreetStation"));
            Layouts.Add(new LayoutDetails("Zlata Vychod", Gauges.NONE, "ZlataVychod"));
        }
Ejemplo n.º 16
0
        // Implemented my own args parser. This is probably a very bad idea...
        // Transforms:
        // -Dirs C:\,D:\,\\NLDOMFS\testing\ -Filetype .txt, .ini,.conf , .bat
        // To:
        // List<string>{ "C:\", "D:\", "\\NLDOMFS\testing\" } and List<string>{ ".txt", ".ini", ".conf", ".bat" }
        private static void parseArguments(string[] args)
        {
            for (var arg = 0; arg < args.Length;)
            {
                if (args[arg].StartsWith("-"))
                {
                    switch (args[arg].ToLower())
                    {
                    case "-dirs": {
                        if (args[arg + 1].ToLower().Equals("-dirs"))
                        {
                            arg++; break;
                        }
                        while (arg + 1 != args.Length && !args[arg + 1].StartsWith("-"))
                        {
                            Directories.AddRange(strimAndSplit(args[arg + 1].ToLower()));
                            arg++;
                        }
                    } break;

                    case "-filetypes": {
                        if (args[arg + 1].ToLower().Equals("-filetype"))
                        {
                            arg++; break;
                        }
                        while (arg + 1 != args.Length && !args[arg + 1].StartsWith("-"))
                        {
                            FileTypes.AddRange(strimAndSplit(args[arg + 1].ToLower()));
                            arg++;
                        }
                    } break;

                    case "-keywords": {
                        if (args[arg + 1].ToLower().Equals("-keywords"))
                        {
                            arg++; break;
                        }
                        while (arg + 1 != args.Length && !args[arg + 1].StartsWith("-"))
                        {
                            Keywords.AddRange(strimAndSplit(args[arg + 1].ToLower()));
                            arg++;
                        }
                    } break;

                    case "-contents": {
                        SearchContents = true;
                        arg++;
                    } break;

                    case "-systemdirs": {
                        SystemDirs = true;
                        arg++;
                    }
                    break;

                    default:
                        // unknown arg, proceed to next
                        arg++;
                        break;
                    }
                }
                else
                {
                    // increment to next arg
                    arg++;
                }
            }
            // remove empty or duplicate args
            Directories = Directories.Where(s => !isNullOrWhiteSpace(s)).Distinct().ToList();
            FileTypes   = FileTypes.Where(s => !isNullOrWhiteSpace(s)).Distinct().ToList();
            Keywords    = Keywords.Where(s => !isNullOrWhiteSpace(s)).Distinct().ToList();

            //If any args are still empty, use default
            setDefaultArgs();
            return;
        }