void detailsControl_CancelClicked(HostelItem hostelItem, FeedbackItem feedback)
        {
            screenRect.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
#if DEBUG
            System.Diagnostics.Debug.WriteLine("Cancel clicked");
#endif
        }
        public async static Task<bool> RegisterFeedback(HostelItem targetHostel, FeedbackItem feedback)
        {
            string url = string.Format("uploadcomment.php?ratingtable={0}&name={1}&empid={2}&comment={3}&rating={4}",
                targetHostel.TableName, UserInformation.FullName, UserInformation.EmployeeId, feedback.Comments, feedback.Rating);

            string response = await GetURLContentAsString(url);

            response = response.Trim();
            if (response == "sucess")
            {
                return true;
            }

            return false;
        }
        async void detailsControl_SubmitClicked(HostelItem hostelItem, FeedbackItem feedback)
        {
            screenRect.Visibility = Windows.UI.Xaml.Visibility.Collapsed;

            bool success = await HostelManager.RegisterFeedback(hostelItem, feedback);

            if (success)
            {
#if DEBUG
                System.Diagnostics.Debug.WriteLine("Submitted successfully");
#endif
                Helper.ShowMessage("Thank you for your valuable feedback", "Information");

            }
            else
            {
                Helper.ShowMessage("Feedback cannot be uploaded, please try again later.", "Error");
            }
        }
 private void OnCancel(HostelItem hostelItem, FeedbackItem feedback)
 {
     if (CancelClicked != null)
         CancelClicked(hostelItem, feedback);
 }
 private void OnSubmit(HostelItem hostelItem, FeedbackItem feedback)
 {
     if (SubmitClicked != null)
         SubmitClicked(hostelItem, feedback);
 }