コード例 #1
0
        private void OnObjectChanges(JObject objectChanges)
        {
            string id           = objectChanges.Value <string>("id");
            var    renderedItem = _card.GetById(id);

            if (renderedItem == null)
            {
                renderedItem = _card;
            }
            if (renderedItem != null)
            {
                JObject changedProperties = objectChanges.Value <JObject>("changes");
                foreach (var prop in changedProperties)
                {
                    renderedItem.ApplyPropertyChange(prop.Key, prop.Value);
                }
            }
        }