예제 #1
0
 public AddressDetailViewModel(AddressDto operation)
 {
     AddressServiceInstance = ClientServiceLocator.Instance().ContractLocator.AddressServices;
     Model = new AddressDetailModel {
         Address = new AddressDto()
     };
     Model.Address = operation;
     View          = new AddressDetailView {
         DataContext = this
     };
 }
예제 #2
0
 public AddressDetailViewModel(AddressDto operation)
 {
     AddressServiceAdapter = new ServiceAdapter <IAddressService>();
     Model = new AddressDetailModel {
         Address = new AddressDto()
     };
     Model.Address = operation;
     View          = new AddressDetailView {
         DataContext = this
     };
 }