Ejemplo n.º 1
0
 /// <summary>
 /// Populates the page with content passed during navigation.  Any saved state is also
 /// provided when recreating a page from a prior session.
 /// </summary>
 /// <param name="sender">
 /// The source of the event; typically <see cref="NavigationHelper"/>
 /// </param>
 /// <param name="e">Event data that provides both the navigation parameter passed to
 /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and
 /// a dictionary of state preserved by this page during an earlier
 /// session.  The state will be null the first time a page is visited.</param>
 private async void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
 {
     // TODO: Create an appropriate data model for your problem domain to replace the sample data
     var group = await SampleDataSource.GetGroupAsync((String)e.NavigationParameter);
     this.DefaultViewModel["Group"] = group;
     this.DefaultViewModel["Items"] = group.Items;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Populates the page with content passed during navigation. Any saved state is also
 /// provided when recreating a page from a prior session.
 /// </summary>
 /// <param name="sender">
 /// The source of the event; typically <see cref="NavigationHelper"/>
 /// </param>
 /// <param name="e">Event data that provides both the navigation parameter passed to
 /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and
 /// a dictionary of state preserved by this page during an earlier
 /// session. The state will be null the first time a page is visited.</param>
 private async void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
 {
     App.objloginbal = await objclient.SelectLoginByIdAsync(App.objloginbal.loginid);
     txtusername.Text = App.objloginbal.username;
     txtsecureanswer.Text = App.objloginbal.secureanswer;
     txtsecurityquestion.Text = App.objloginbal.securityquestion;
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Populates the page with content passed during navigation.  Any saved state is also
        /// provided when recreating a page from a prior session.
        /// </summary>
        /// <param name="sender">
        /// The source of the event; typically <see cref="NavigationHelper"/>
        /// </param>
        /// <param name="e">Event data that provides both the navigation parameter passed to
        /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and
        /// a dictionary of state preserved by this page during an earlier
        /// session.  The state will be null the first time a page is visited.</param>
        private async void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
        {
            // TODO: Assign a collection of bindable groups to this.DefaultViewModel["Groups"]
            // TODO: Assign a bindable collection of items to this.DefaultViewModel["Items"]
            var objimagelist = await objclient.SelectImageGalleryByEventAsync((int)e.NavigationParameter);

            List<SampleDataGroup> group = new List<SampleDataGroup>();
            group.Add(new SampleDataGroup("1", "Image Gallery", "", "", ""));
            for (int i = 0; i < objimagelist.Count; i++)
            {
                group[0].Items.Add(new SampleDataItem(objimagelist[i].imageid.ToString(), "", "", objimagelist[i].imagefile, "", ""));
            }
            this.defaultViewModel["Groups"] = group;
            //this.defaultViewModel["Items"] = group.Items;
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Populates the page with content passed during navigation.  Any saved state is also
        /// provided when recreating a page from a prior session.
        /// </summary>
        /// <param name="sender">
        /// The source of the event; typically <see cref="NavigationHelper"/>
        /// </param>
        /// <param name="e">Event data that provides both the navigation parameter passed to
        /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and
        /// a dictionary of state preserved by this page during an earlier
        /// session.  The state will be null the first time a page is visited.</param>
        private async void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
        {
            // TODO: Assign a collection of bindable groups to this.DefaultViewModel["Groups"]
            int categoryid = Convert.ToInt32(e.NavigationParameter);

            var objeventlist = await objclient.SelectEventByCategoryAsync(categoryid);

            List<SampleDataGroup> group = new List<SampleDataGroup>();
            group.Add(new SampleDataGroup("Event", "Events", "", "", ""));
            for (int i = 0; i < objeventlist.Count; i++)
            {

                group[0].Items.Add(new SampleDataItem(objeventlist[i].eventid.ToString(), objeventlist[i].eventtitle, objeventlist[i].eventcontact.ToString(), "http://localhost:3520/Images/EventImage/" + objeventlist[i].eventimage.ToString(), objeventlist[i].organizername, objeventlist[i].cityname));
            }
            this.defaultViewModel["Groups"] = group;
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Populates the page with content passed during navigation.  Any saved state is also
        /// provided when recreating a page from a prior session.
        /// </summary>
        /// <param name="sender">
        /// The source of the event; typically <see cref="NavigationHelper"/>
        /// </param>
        /// <param name="e">Event data that provides both the navigation parameter passed to
        /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and
        /// a dictionary of state preserved by this page during an earlier
        /// session.  The state will be null the first time a page is visited.</param>
        private async void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
        {
            SVCEventicaService.ServiceClient objclient = new SVCEventicaService.ServiceClient();

            SampleDataGroup group = new SampleDataGroup("1", "Event Review", "", "", "");

            SVCEventicaService.eventreview objreviewbal = new SVCEventicaService.eventreview();

            var objreviewballist = await objclient.SelectEventReviewByEventAsync((int)e.NavigationParameter);

            for (int i = 0; i < objreviewballist.Count; i++)
            {
                group.Items.Add(new SampleDataItem(objreviewballist[i].eventreviewid.ToString(),"By: "+objreviewballist[i].contactname,"Email: "+objreviewballist[i].email,"Mobile: "+objreviewballist[i].mobileno,"Review:\n"+objreviewballist[i].reviewdetail,"Review Date: " +objreviewballist[i].reviewdate.ToString ()));
            }
            this.defaultViewModel["Groups"] = group;
            this.DefaultViewModel["Items"] = group.Items;
        }
Ejemplo n.º 6
0
        /// <summary>
        /// Populates the page with content passed during navigation.  Any saved state is also
        /// provided when recreating a page from a prior session.
        /// </summary>
        /// <param name="sender">
        /// The source of the event; typically <see cref="NavigationHelper"/>
        /// </param>
        /// <param name="e">Event data that provides both the navigation parameter passed to
        /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and
        /// a dictionary of state preserved by this page during an earlier
        /// session.  The state will be null the first time a page is visited.</param>
        private void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
        {
            // TODO: Assign a collection of bindable groups to this.DefaultViewModel["Groups"]
            List<SampleDataGroup> sampleDataGroups = new List<SampleDataGroup>();
            sampleDataGroups.Add(new SampleDataGroup("1", "User Navigation", "", "", ""));
            sampleDataGroups[0].Items.Add(new SampleDataItem("1", "Profile", "", "Assets/profile.png", "", ""));
            sampleDataGroups[0].Items.Add(new SampleDataItem("2", "Change Password", "", "Assets/ChangePassword.png", "", ""));
            sampleDataGroups[0].Items.Add(new SampleDataItem("3", "Events", "", "Assets/event.jpg", "", ""));
            sampleDataGroups[0].Items.Add(new SampleDataItem("4", "Logout", "", "Assets/logout1.png", "", ""));

            sampleDataGroups.Add(new SampleDataGroup("2", "Search Event", "", "", ""));
            sampleDataGroups[1].Items.Add(new SampleDataItem("5", "By Area", "", "Assets/location.png", "", ""));
            sampleDataGroups[1].Items.Add(new SampleDataItem("6", "By Organizer", "", "Assets/organizer.jpg", "", ""));
            sampleDataGroups[1].Items.Add(new SampleDataItem("7", "By Category", "", "Assets/category.jpg", "", ""));


            this.DefaultViewModel["Groups"] = sampleDataGroups;

        }
Ejemplo n.º 7
0
        /// <summary>
        /// Populates the page with content passed during navigation.  Any saved state is also
        /// provided when recreating a page from a prior session.
        /// </summary>
        /// <param name="sender">
        /// The source of the event; typically <see cref="NavigationHelper"/>
        /// </param>
        /// <param name="e">Event data that provides both the navigation parameter passed to
        /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and
        /// a dictionary of state preserved by this page during an earlier
        /// session.  The state will be null the first time a page is visited.</param>
        private async void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
        {
            // TODO: Create an appropriate data model for your problem domain to replace the sample data
            var item =(SampleDataItem)e.NavigationParameter;
            this.DefaultViewModel["Item"] = item;

            App.objeventbal.eventid = Convert.ToInt32(item.UniqueId);

            var eventbal = await objclient.SelectEventByIdAsync(Convert.ToInt32(item.UniqueId));
            tblocation.Text = "Location: "+ eventbal.eventlocation + ", "+ eventbal.areaname + ", "+ eventbal.cityname + ", "+ eventbal.StateName;
            tbeventdate.Text = "Date: "+eventbal.eventdate.ToString ();
            tbeventtime.Text = "Time: "+eventbal.eventtime.ToString() ;
            tbemail.Text = "Email: "+eventbal.email;
            tbwebsite.Text = "Website: "+eventbal.website;
            tbcontact.Text = "Contact Person: "+eventbal.eventcontact;
            tbpostdate.Text = "Post Date: "+eventbal.postdate.ToString ();
            tbdetail.Text = "Detail:\n" + eventbal.eventdetail;
          
            
        
        }
Ejemplo n.º 8
0
        /// <summary>
        /// Populates the page with content passed during navigation.  Any saved state is also
        /// provided when recreating a page from a prior session.
        /// </summary>
        /// <param name="sender">
        /// The source of the event; typically <see cref="NavigationHelper"/>
        /// </param>
        /// <param name="e">Event data that provides both the navigation parameter passed to
        /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and
        /// a dictionary of state preserved by this page during an earlier
        /// session.  The state will be null the first time a page is visited.</param>
        private async void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
        {
            // TODO: Assign a collection of bindable groups to this.DefaultViewModel["Groups"]


            //var sampleDataGroups = await SampleDataSource.GetGroupsAsync();
            //this.DefaultViewModel["Groups"] = sampleDataGroups;

            var objeventlist = await objclient.SelectEventAsync();

           // SampleDataGroup group = new SampleDataGroup("1", "Event List", "", "", "");
            List<SampleDataGroup> group = new List<SampleDataGroup>();
            group.Add(new SampleDataGroup("Event", "Events", "", "", ""));
            for (int i = 0; i <objeventlist.Count; i++)
            {

                group[0].Items.Add(new SampleDataItem(objeventlist[i].eventid.ToString(), objeventlist[i].eventtitle, objeventlist[i].eventcontact.ToString(), "http://localhost:3520/Images/EventImage/" + objeventlist[i].eventimage.ToString(), objeventlist[i].organizername, objeventlist[i].cityname));
            }
            this.defaultViewModel["Groups"] = group;
           // this.defaultViewModel["Items"] = group.Items;

        }
Ejemplo n.º 9
0
        /// <summary>
        /// Populates the page with content passed during navigation.  Any saved state is also
        /// provided when recreating a page from a prior session.
        /// </summary>
        /// <param name="sender">
        /// The source of the event; typically <see cref="NavigationHelper"/>
        /// </param>
        /// <param name="e">Event data that provides both the navigation parameter passed to
        /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and
        /// a dictionary of state preserved by this page during an earlier
        /// session.  The state will be null the first time a page is visited.</param>
        private void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
        {
            // TODO: Create an appropriate data model for your problem domain to replace the sample data
            //var sampleDataGroups = await SampleDataSource.GetGroupsAsync();
            //this.DefaultViewModel["Groups"] = sampleDataGroups;


            List<SampleDataGroup> sampleDataGroups = new List<SampleDataGroup>();
            sampleDataGroups.Add(new SampleDataGroup("1", "User Navigation", "", "", ""));
            sampleDataGroups[0].Items.Add(new SampleDataItem("1", "Profile", "", "Assets/1.jpg", "", ""));
            sampleDataGroups[0].Items.Add(new SampleDataItem("2", "Change Password", "", "", "", ""));
            sampleDataGroups[0].Items.Add(new SampleDataItem("3", "Events", "", "", "", ""));
            sampleDataGroups[0].Items.Add(new SampleDataItem("4", "Logout", "", "", "", ""));

            sampleDataGroups.Add(new SampleDataGroup("2", "Search Event", "", "", ""));
            sampleDataGroups[1].Items.Add(new SampleDataItem("5", "By Area", "", "", "", ""));
            sampleDataGroups[1].Items.Add(new SampleDataItem("6", "By Organizer", "", "", "", ""));
            sampleDataGroups[1].Items.Add(new SampleDataItem("6", "By Category", "", "", "", ""));


            this.DefaultViewModel["Groups"] = sampleDataGroups;

        }
Ejemplo n.º 10
0
 /// <summary>
 /// Populates the page with content passed during navigation. Any saved state is also
 /// provided when recreating a page from a prior session.
 /// </summary>
 /// <param name="sender">
 /// The source of the event; typically <see cref="NavigationHelper"/>
 /// </param>
 /// <param name="e">Event data that provides both the navigation parameter passed to
 /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and
 /// a dictionary of state preserved by this page during an earlier
 /// session. The state will be null the first time a page is visited.</param>
 private void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
 {
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Populates the page with content passed during navigation. Any saved state is also
 /// provided when recreating a page from a prior session.
 /// </summary>
 /// <param name="sender">
 /// The source of the event; typically <see cref="NavigationHelper"/>
 /// </param>
 /// <param name="e">Event data that provides both the navigation parameter passed to
 /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and
 /// a dictionary of state preserved by this page during an earlier
 /// session. The state will be null the first time a page is visited.</param>
 private void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
 {
     tbtitle.Text += ": " + App.objeventbal.eventtitle;
 }
Ejemplo n.º 12
0
 /// <summary>
 /// Populates the page with content passed during navigation. Any saved state is also
 /// provided when recreating a page from a prior session.
 /// </summary>
 /// <param name="sender">
 /// The source of the event; typically <see cref="NavigationHelper"/>
 /// </param>
 /// <param name="e">Event data that provides both the navigation parameter passed to
 /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and
 /// a dictionary of state preserved by this page during an earlier
 /// session. The state will be null the first time a page is visited.</param>
 private async void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
 {
     drpcategory.ItemsSource = await objclient.SelectCategoryAsync();
 }
Ejemplo n.º 13
0
 /// <summary>
 /// Populates the page with content passed during navigation. Any saved state is also
 /// provided when recreating a page from a prior session.
 /// </summary>
 /// <param name="sender">
 /// The source of the event; typically <see cref="NavigationHelper"/>
 /// </param>
 /// <param name="e">Event data that provides both the navigation parameter passed to
 /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and
 /// a dictionary of state preserved by this page during an earlier
 /// session. The state will be null the first time a page is visited.</param>
 private async void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
 {
     drporganizer.ItemsSource = await objclient.SelectOrganizerAsync();
 }