示例#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;
                }
            }
        }
示例#2
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            int         f = 0;
            EventDetail a = new EventDetail();

            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;
                }
            }
        }