Ejemplo n.º 1
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            int f = 0;
            EventDetail a = new EventDetail();
            ScrollBar s = new ScrollBar();
            try
            {
                info1 = e.Parameter as Events;
                a.Desc = info1.Desc;
                a.Title = info1.Title;
                a.college = info1.college;
                a.date = info1.Date.Date.ToString("dd/MM/yyyy");
                a.bitmapImage = new Windows.UI.Xaml.Media.Imaging.BitmapImage(new Uri(info1.imageUri));
                image2.Source = a.bitmapImage;
                a.issuedBy = info1.issuedBy;
                a.url = info1.url;
                a.mobile = info1.mobile;
                a.Email = info1.email;
            }
            catch (Exception)
            {
                f = 1;
            }
            finally
            {
                if (f == 1)
                {
                    MessageDialog m = new MessageDialog("Oops... There was some Problem Handling your Request");
                    await m.ShowAsync();

                }
                else
                {
                    
                    Pivott.DataContext = a;
                }
            }
        }
Ejemplo n.º 2
0
        private void Menu_ItemClick_1(object sender, ItemClickEventArgs e)
        {
            Events ev = new Events();
            EventList a = e.ClickedItem as EventList;
            foreach(Events eve in items)
            {
                if(a.Id==eve.Id)
                {
                    ev = eve;
                    break;
                }

            }
            Frame.Navigate(typeof(eventDetail), ev);

        }
Ejemplo n.º 3
0
 /// <summary>
 /// Invoked when this page is about to be displayed in a Frame.
 /// </summary>
 /// <param name="e">Event data that describes how this page was reached.
 /// This parameter is typically used to configure the page.</param>
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     Events ob = new Events();
     listEvent.ItemsSource = ob;    //list view data
 }
Ejemplo n.º 4
0
        private void Menu_ItemClick_1(object sender, ItemClickEventArgs e)
        {
            EventList a = e.ClickedItem as EventList;
            Events lol = new Events();
            foreach (Events eve in items)
            {
                if (a.Id == eve.Id)
                {
                    lol = eve;
                }
            }

            Frame.Navigate(typeof(eventDetailxaml), lol);
        }