TAILIEUCHUNG - Network Programming in .NET With C# and Visual Basic .NET phần 9

và dtDeparture. Một hộp combo có tên là cbType cũng được yêu cầu. Bạn phải click vào mục tài sản cho hộp kết hợp và bổ sung thêm ba chuỗi: cơ bản, trên bộ, và sang trọng. Nhấp vào nút Send và thêm mã sau đây: C # | Implementing a message queue 429 Public Class booking Public Enum RoomType BASIC EN_SUITE DELUXE End Enum Public Class Room Public occupants As Int16 Public roomType As RoomType End Class Public name As String Public myRoom As Room Public arrival As DateTime Public departure As DateTime End Class Select the Form Design tab and remove the textbox tbMessage from the form. Now drag on two textboxes named tbName and tbOccupants. If you wish you can use labels to indicate what each textbox is used for although this is not essential. Draw on two Date-Picker controls named dtArrival and dtDeparture. A combo box named cbType is also required. You must click on the Items property for the combo box and add three strings basic en suite and deluxe. Click on the Send button and add the following code C private void btnSend_Click object sender e string queueName . private test MessageQueue mq if queueName mq new MessageQueue queueName else _I Chapter 15 430 Implementing a message queue mq queueName booking hotelBooking new booking new switch case basic break case en suite break case deluxe break hotelBooking Private Sub btnSend_Click ByVal sender As Object _ ByVal e As Dim queueName As String . private test Dim mq As MessageQueue If queueName Then mq New MessageQueue queueName Else mq queueName End If Dim hotelBooking As booking New booking .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.