/// <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); }
/// <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); }
private static ModelKey CreateModelKey(NodeKey key) { return new ModelKey() { Node = key.Key, Key = Guid.NewGuid(), }; }