Esempio n. 1
0
        public ExtendedViewModel()
        {
            const double latitude  = 41.788081;
            const double longitude = -87.831573;

            for (var i = 1; i <= 9; i++)
            {
                SamplePins.Add(new ExtendedPin
                {
                    Address         = string.Format("Sample Address {0}", i),
                    Label           = string.Format("Test Label {0}", i),
                    PhoneNumber     = string.Format("(773)233-123{0}", i),
                    Position        = new Position(latitude + (0.01 * i), longitude + (0.01 * i)),
                    ScheduleEntries = new List <ScheduleEntry>
                    {
                        new ScheduleEntry {
                            Day = "Monday", HoursOfOperation = "8 am - 5 pm"
                        },
                        new ScheduleEntry {
                            Day = "Tuesday", HoursOfOperation = "8 am - 5 pm"
                        },
                        new ScheduleEntry {
                            Day = "Wednesday", HoursOfOperation = "8 am - 5 pm"
                        },
                        new ScheduleEntry {
                            Day = "Thusday", HoursOfOperation = "8 am - 5 pm"
                        },
                        new ScheduleEntry {
                            Day = "Friday", HoursOfOperation = "8 am - 5 pm"
                        },
                    }
                });
            }
        }
Esempio n. 2
0
        public ExtendedMapViewModel()
        {
            Device.BeginInvokeOnMainThread(() =>
            {
                SamplePins.Add(new ExtendedPin
                {
                    Address         = "8832 West Dempster Street, Niles, IL 60714",
                    Label           = "Portillo's",
                    Position        = new Position(42.0412592, -87.8534305),
                    PinIcon         = Icons.FoodBowl,
                    PhoneNumber     = "(847)795-0600",
                    Website         = "http://www.portillos.com/",
                    ScheduleEntries = new List <ScheduleEntry>
                    {
                        new ScheduleEntry
                        {
                            Day = "Monday",
                            HoursOfOperation = "9:00 am - 5:00pm"
                        },
                        new ScheduleEntry
                        {
                            Day = "Tuesday",
                            HoursOfOperation = "9:00 am - 5:00pm"
                        }
                    },
//            Others = new List<ExtraDetailModel>
//            {
//              new ExtraDetailModel
//              {
//                Key = "Website",
//                Value = "http://www.portillos.com/"
//              }
//            }
                });


                SamplePins.Add(new ExtendedPin
                {
                    Address         = "8265 West Golf Road, Niles, IL 60714",
                    Label           = "Himalayan Restaurant",
                    Position        = new Position(42.0399843, -87.8444183),
                    PinIcon         = Icons.Chicken,
                    PhoneNumber     = "(847)324-4150",
                    Website         = "http://www.himalayanrestaurant.com/",
                    ScheduleEntries = new List <ScheduleEntry>
                    {
                        new ScheduleEntry
                        {
                            Day = "Monday",
                            HoursOfOperation = "9:00 am - 5:00pm"
                        },
                        new ScheduleEntry
                        {
                            Day = "Tuesday",
                            HoursOfOperation = "9:00 am - 5:00pm"
                        }
                    },
//            Others = new List<ExtraDetailModel>
//            {
//              new ExtraDetailModel
//              {
//                Key = "Website",
//                Value = "http://www.himalayanrestaurant.com/"
//              }
//            }
                });
            });
        }