private void btn_1_Click(object sender, EventArgs e) { coreHotalConnect chObj = new coreHotalConnect(); tb_name.Text = chObj.getInformation(tb_hID.Text).ToString(); tb_type.Text = chObj.getRoomType(tb_hID.Text).ToString(); tb_price.Text = chObj.getPrice(tb_hID.Text).ToString(); tb_Allot.Text = chObj.getAllotment(tb_hID.Text).ToString(); }
private void button1_Click(object sender, EventArgs e) { coreHotalConnect chObj = new coreHotalConnect(); tb_Allot.Text = chObj.getBooking(tb_hID.Text, int.Parse(tb_amount.Text)).ToString(); lb_result.Text = chObj.showStatus(tb_hID.Text, int.Parse(tb_amount.Text)).ToString(); }