コード例 #1
0
        private async Task BuildViewModel(GraphSyncPartViewModel model, GraphSyncPart part)
        {
            //todo: pass content type instead?
            _syncNameProvider.ContentType = part.ContentItem.ContentType;
            model.Text = part.Text ?? await _syncNameProvider.GenerateIdPropertyValue();

            model.Readonly  = _syncNameProvider.GraphSyncPartSettings.PreexistingNode;
            model.DisplayId = _syncNameProvider.GraphSyncPartSettings.DisplayId;
        }