Beispiel #1
0
        /// <summary>
        /// Add node key object in model view state
        /// </summary>
        public static void ApplyNodeKey(ModelItem model, NodeKey key)
        {
            Contract.Requires(model != null);
            Contract.Requires(key != null);

            StoreKey(model, key);
        }
Beispiel #2
0
        /// <summary>
        /// Add node and model key object in model view state
        /// </summary>
        public static void ApplyKey(ModelItem model, NodeKey key)
        {
            Contract.Requires(model != null);
            Contract.Requires(key != null);

            var items = CompositeService.GetSubModelItems(model);
            foreach (var item in items)
            {
                ApplyModelKey(item, key);
            }
            ApplyNodeKey(model, key);
        }
Beispiel #3
0
 private static ModelKey CreateModelKey(NodeKey key)
 {
     return new ModelKey()
     {
         Node = key.Key,
         Key = Guid.NewGuid(),
     };
 }