private void btn_room_no_click(object sender, EventArgs e) { room_id = ((BunifuFlatButton)sender).Name; room_no = ((BunifuFlatButton)sender).Text; if (room_id != "") { HotelRoomStatus hr = new HotelRoomStatus(); hr.ShowDialog(); roomManagement(); } }
private void btn_check_in_out_click(object sender, EventArgs e) { room_id = ((BunifuFlatButton)sender).Name; room_no = ((BunifuFlatButton)sender).AccessibleName; buttonText = ((BunifuFlatButton)sender).Text; if (room_no != "") { HotelRoomStatus hr = new HotelRoomStatus(); hr.ShowDialog(); roomManagement(); } }
private void mainPanel_click(object sender, EventArgs e) { room_id = ((Panel)sender).Name; room_no = ((Panel)sender).Text; if (room_id != "") { HotelRoomStatus hr = new HotelRoomStatus(); hr.ShowDialog(); roomManagement(); } }