コード例 #1
0
        public AddEditPropertyListViewModel(AddEditPropertyListDialog view, int propertyListGroupId)
        {
            View = view;
            mPropertyList = new PropertyList { PropertyListGroupId = propertyListGroupId };
            LoadPropertyLists(propertyListGroupId);

            FireLoaded();

            OkButtonCommand = new DelegateCommand<object>(OkButtonHander, CanModifyConfig);
            CancelButtonCommand = new DelegateCommand<object>(CancelButtonHander, x => true);
        }
コード例 #2
0
        public AddEditPropertyListViewModel(AddEditPropertyListDialog view, PropertyList propertyList)
        {
            View = view;
            mPropertyList = propertyList;
            LoadPropertyLists(propertyList.PropertyListGroupId);

            OkButtonCommand = new DelegateCommand<object>(OkButtonHander, CanModifyConfig);
            CancelButtonCommand = new DelegateCommand<object>(CancelButtonHander, x => true);

            CmsWebServiceClient cmsWebServiceClient = new CmsWebServiceClient(Utils.WcfBinding, Utils.WcfEndPoint);

            cmsWebServiceClient.GetPropertyListCompleted +=
                (s1, e1) =>
                {
                    mPropertyList = e1.Result;
                    FireLoaded();
                };
            cmsWebServiceClient.GetPropertyListAsync(mPropertyList.Id);
        }