public AddEditPropertyListGroupViewModel(AddEditPropertyListGroupDialog view) { mPropertyListGroup = new PropertyListGroup { Name = String.Empty, Ordinal = 0 }; OkButtonCommand = new DelegateCommand<object>(OkButtonHander, CanModifyConfig); CancelButtonCommand = new DelegateCommand<object>(CancelButtonHander, x => true); View = view; FireLoaded(); }
public AddEditPropertyListGroupViewModel(AddEditPropertyListGroupDialog view, int propertyListGroupId) { View = view; OkButtonCommand = new DelegateCommand<object>(OkButtonHander, CanModifyConfig); CancelButtonCommand = new DelegateCommand<object>(CancelButtonHander, x => true); var cmsWebServiceClient = new CmsWebServiceClient(Utils.WcfBinding, Utils.WcfEndPoint); cmsWebServiceClient.GetPropertyListGroupCompleted += (s1, e1) => { mPropertyListGroup = e1.Result; FireLoaded(); }; cmsWebServiceClient.GetPropertyListGroupAsync(propertyListGroupId); }