private void btnBack_Click(object sender, EventArgs e) { this.Hide(); RoomForGuest rg = new RoomForGuest(); rg.Show(); }
private void btn116SDelux_Click_1(object sender, EventArgs e) { //MyHotelDBDataContext cntx = new MyHotelDBDataContext(@"Data Source=(LocalDB)\v11.0;AttachDbFilename=C:\Users\DELL\Desktop\Hotel_Management_System\Hotel_Management\Hotel_Info.mdf;Integrated Security=True;Connect Timeout=30"); RoomForGuest a = new RoomForGuest(); var rfg = from m in cntx.Rooms where m.Room_num == btn116SDelux.Text select m.Room_bookingStatus; string s = rfg.First(); txtCheckFor116SDel.Text = s; }