Пример #1
0
        /// <summary>
        /// this holds some dummy data to play with, taken from Wikipedia/google maps
        /// </summary>
        private void dummyData()
        {
            Interest Rij = new Interest("Rijkmuseum", "The Rijksmuseum is a Netherlands national museum dedicated to arts and history in Amsterdam. The museum is located at the Museum Square in the borough Amsterdam South.", interestType.Museum);
            Interest stedInterest = new Interest("Stedelijk Museum", "The Stedelijk Museum Amsterdam is an international museum dedicated to modern and contemporary art and design. - See more at: http://www.stedelijk.nl/en#sthash.dzaEBA4u.dpuf", interestType.Museum);
            Interest AnnFrank = new Interest("Ann Frank House", "The Anne Frank House (Dutch: Anne Frank Huis) is a historic house and biographical museum dedicated to Jewish wartime diarist Anne Frank. The building is located at the Prinsengracht, close to the Westerkerk, in central Amsterdam in the Netherlands.", interestType.Museum);
            List<Interest> mues = new List<Interest>();
            mues.Add(Rij);
            mues.Add(stedInterest);
            mues.Add(AnnFrank);

            Interest bike = new Interest("Ride a bike", "Do as the locals do, and grab a set of wheels for an active bicycle tour around Amsterdam. ", interestType.Activity);
            Interest boat = new Interest("Take a boat tour", "Experiencing Amsterdam from the water is one of the best ways to get to know the city", interestType.Activity);
            Interest walking = new Interest("Walking", "Hit the streets and get walking - the best way to see Amsterdam", interestType.Activity);
            List<Interest> act = new List<Interest>();
            act.Add(bike);
            act.Add(boat);
            act.Add(walking);

            Interest sign = new Interest("The I Amsterdam sign", "The large I amsterdam slogan quickly became a city icon and a much sought-after photo opportunity. Visitors photograph themselves, in, around and on top of the slogan, and it always manages to inspire the novice photographer.", interestType.Landmark);
            Interest Damsq = new Interest("Dam square", "The Dam is the very centre and heart of the city, and is the center of Amsterdam attractions.", interestType.Landmark);
            Interest Vondelpark = new Interest("Vonderlpark", "ondelpark is the largest city park in Amsterdam, and certainly the most famous park in the Netherlands, which welcomes about 10 million visitors every year.", interestType.Landmark);
            List<Interest> lndmrk = new List<Interest>();
            lndmrk.Add(sign);
            lndmrk.Add(Damsq);
            lndmrk.Add(Vondelpark);

            Location Amsterdam = new Location("Amsterdam",mues, act, lndmrk);
            Locations.Add(Amsterdam);
            updateCBO();
        }
Пример #2
0
 /// <summary>
 /// this method sets the location to what has been selected from the combobox
 /// </summary>
 private void setLocation()
 {
     if (isLocation())
     {
         currentLocation = Locations[cboDestination.SelectedIndex];
     }
     else
     {
         currentLocation = new Location();
     }
 }