예제 #1
0
 public void addUserRating(RSI_Hotel_Booking.UserRatingService.userRatingDto arg0, long arg1, long arg2)
 {
     RSI_Hotel_Booking.UserRatingService.addUserRatingRequest inValue = new RSI_Hotel_Booking.UserRatingService.addUserRatingRequest();
     inValue.arg0 = arg0;
     inValue.arg1 = arg1;
     inValue.arg2 = arg2;
     RSI_Hotel_Booking.UserRatingService.addUserRatingResponse retVal = ((RSI_Hotel_Booking.UserRatingService.UserRatingWebService)(this)).addUserRating(inValue);
 }
예제 #2
0
        private void sendComment_Click(object sender, EventArgs e)
        {
            UserRating rating = new UserRating();

            rating.personName  = textBox1.Text;
            rating.description = textBox1.Text;

            try
            {
                UserRatingClient client = new UserRatingClient();
                using (new OperationContextScope(client.InnerChannel))
                {
                    Program.AddAccessHeaders();
                    client.addUserRating(rating, 181, _ID);
                }

                RommServiceClient client2 = new RommServiceClient();
                using (new OperationContextScope(client2.InnerChannel))
                {
                    Program.AddAccessHeaders();
                    RoomDto room = client2.getRoomDto(_ID);
                }

                if (room.userRatings != null)
                {
                    flowLayoutPanel2.Controls.Clear();
                    foreach (var item in room.userRatings.Reverse())
                    {
                        CommentItem comment = new CommentItem(item.personName, item.description);
                        flowLayoutPanel2.Controls.Add(comment);
                    }
                }
                //SetRoomDetails(_ID);

                MessageBox.Show("Comment succesfully added!", "Comment", MessageBoxButtons.OK);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Comment", MessageBoxButtons.OK);
            }

            textBox1.Text = "";
        }
예제 #3
0
 public addUserRatingRequest(RSI_Hotel_Booking.UserRatingService.userRatingDto arg0, long arg1, long arg2)
 {
     this.arg0 = arg0;
     this.arg1 = arg1;
     this.arg2 = arg2;
 }
예제 #4
0
 public System.Threading.Tasks.Task <RSI_Hotel_Booking.UserRatingService.addUserRatingResponse> addUserRatingAsync(RSI_Hotel_Booking.UserRatingService.userRatingDto arg0, long arg1, long arg2)
 {
     RSI_Hotel_Booking.UserRatingService.addUserRatingRequest inValue = new RSI_Hotel_Booking.UserRatingService.addUserRatingRequest();
     inValue.arg0 = arg0;
     inValue.arg1 = arg1;
     inValue.arg2 = arg2;
     return(((RSI_Hotel_Booking.UserRatingService.UserRatingWebService)(this)).addUserRatingAsync(inValue));
 }