コード例 #1
0
        public UCDiscoverScreen(MainWindow _source)
        {
            _main = _source;
            InitializeComponent();

            CultureInfo originalCulture = Thread.CurrentThread.CurrentCulture;
            Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

            List<Events> decEvents1 = new List<Events>();
            decEvents1.Add(new Events("Inside", "Inside is a play about modern life. Daniel MacIvor adapted the play with University of Calgary students", "Images/inside.jpg", "210 University Ct. N.W\nReeve Theatre",
                "Tuesday 7:30 p.m\nWednesday 7:30 p.m\nThursday 7:30 p.m\nFriday 7:30 p.m\nSaturday 7:30 p.m\nSunday 2 p.m"));
            decEvents1.Add(new Events("Jewish Book Festival", "Browse hundreds of books at the annual Jewish Book Festival", "Images/jewish_book_event.jpeg", "1607 90 Ave. S.W\nJewish Centre Calgary",
                "Sunday 10 a.m. to 8:30 p.m\nMonday 10 a.m.to 8:30 p.m\nTuesday 10 a.m.to 8:30 p.m\nWednesday 10 a.m.to 8:30 p.m\nThursday 10 a.m.to 8:30 p.m\nFriday 10 a.m.to 4 p.m\nSaturday 6 p.m.to 8:30 p.m."));
            eventListing = new Dictionary<String, List<Events>>();
            eventListing.Add("12/1/2015", decEvents1);
            eventListing.Add("12/2/2015", decEvents1);
            eventListing.Add("12/3/2015", decEvents1);
            eventListing.Add("12/4/2015", decEvents1);
            eventListing.Add("12/5/2015", decEvents1);

            List <Events> novEvents = new List<Events>();
            novEvents.Add(new Events("Calgary Flames", "Calgary flames face off against the league leading team Chicago Blackhawks", "Images/Calgary-Flames.jpg", "555 Saddledome Rise SE\n T2G 2W1", "Saturday 7 p.m - 10 p.m"));
            novEvents.Add(new Events("Illuminasia", "Exotic lantern festival from different parts of asia", "Images/illuminasia.jpg", "1300 Zoo Rd NE\nT2E 7V6", "All week 7 pm"));
            novEvents.Add(new Events("Calgary Stampede", "Famous cowboy festival for all ages", "Images/stampede_logo.png", "1410 Olympic Way SE\nT2G 2W1", "7 a.m. to 12 p.m"));
            eventListing.Add("11/25/2015", novEvents);

            expAttractions.IsExpanded = true;
            setupCalendar();
        }
コード例 #2
0
ファイル: UC_InfoScreen.xaml.cs プロジェクト: brnle/481kiosk
 public UCInfoScreen(MainWindow _window)
 {
     _main = _window;
     InitializeComponent();
 }
コード例 #3
0
ファイル: UC_InfoScreen.xaml.cs プロジェクト: brnle/481kiosk
 public UCInfoScreen(MainWindow _window, String origin)
 {
     _main = _window;
     originChange = origin;
     InitializeComponent();
 }
コード例 #4
0
ファイル: UC_Restaurants.xaml.cs プロジェクト: brnle/481kiosk
 public UCRestaurants(MainWindow _window, String origin)
 {
     InitializeComponent();
     _main = _window;
     newOrigin = origin;
 }