Ejemplo n.º 1
0
        private void button3_Click(object sender, EventArgs e)
        {
            BReq req = new BReq();

            string roomID = textBox2.Text.ToString();

            req.HttpGet("https://shrouded-everglades-94535.herokuapp.com/functions/bookRoom-roomid=" + roomID + ",uname=" + userName + "");
        }
Ejemplo n.º 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            BReq req = new BReq();

            string rating = comboBox1.GetItemText(comboBox1.SelectedItem);


            req.HttpGet("https://shrouded-everglades-94535.herokuapp.com/functions/setRating-rating=" + rating + ",usename=" + userName + "");
        }
Ejemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            BReq req = new BReq();

            string review = textBox1.Text.ToString();



            review.Replace(" ", "%20");



            label1.Text = req.HttpGet("https://shrouded-everglades-94535.herokuapp.com/functions/addReview-review=" + review + ",userName="******"");
        }
Ejemplo n.º 4
0
        private void button1_Click(object sender, EventArgs e)
        {
            BReq req = new BReq();


            string userName = textBox1.Text.ToString();
            string password = textBox2.Text.ToString();
            string gender   = textBox3.Text.ToString();
            string age      = textBox4.Text.ToString();



            req.HttpGet("https://shrouded-everglades-94535.herokuapp.com/functions/registerUser-uN=" + userName + ",pass="******",gend=" + gender + ",age=" + age + "");


            loginForm.Show();
            this.Close();
        }