TAILIEUCHUNG - NET Domain-Driven Design with C#P roblem – Design – Solution phần 6

AddressesViewModel thay vì ViewModel. Phương pháp duy nhất mà tôi cần phải thay đổi là PopulateAddressses, tôi đã phải thay đổi nó để nâng cao chỉ có các sự kiện PropertyChanged cho | Chapter 5 Submittal Transmittals continued newSubmittal It first has to create a new instance of a Submittal and initialize its SpecSection constructor argument to be the same as the current Submittal as well as feed it the same Project key as the current Submittal. This is necessary because a Submittal cannot be created without knowing the Specification Section or to what Project it belongs. The Specification Section value can be changed via a property setter later but to start I need to put something there. As far as the Project key that cannot be changed unless a different project is selected altogether. Once the Submittal has been created it is given a default Specification Section Secondary Index of 01 . This is to prevent any duplicate entries and once again can be changed via property setters later. The next steps are to clear the current Submittal data and then to clear out the MutableCopyToList RoutingItems and TrackingItems lists. Once that is done the state of the ViewModel is set to New and the PropertyChanged event is raised for the UI to refresh itself. Next the newly created Submittal is added to the current list of Submittals and then the Refresh method is called on the CollectionView submittals variable in order to have the UI refreshed. Finally by calling the MoveCurrentToLast method on the CollectionView the Submittal will appear last in the list in the UI. The DeleteCopyToCommandHandler method is interesting because it gets the MutableCopyTo instance that must be deleted passed to it from the DelegateCommandEventArgs parameter private void DeleteCopyToCommandHandler object sender DelegateCommandEventArgs e MutableCopyTo copyTo as MutableCopyTo if copyTo null copyTo It then checks to see whether the MutableCopyTo instance is

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.