public CharacterStoryRelationModel GetNewModel(int characterId, int storyId) { var model = new CharacterStoryRelationModel(characterId, storyId); model.Position = CharacterStoryRelationModel.PositionItems[0]; return(model); }
public void RemoveModel(CharacterStoryRelationModel model) { if (_characterStoryRelModelDictionary.ContainsKey(model.CharacterId)) { _characterStoryRelModelDictionary.Remove(model.CharacterId); } ModelCollection.Remove(model); }
public void AddModel(CharacterStoryRelationModel model) { ModelCollection.Add(model); }
public void RemoveModel(CharacterStoryRelationModel model) { var modelMgr = FindModel(model.StoryFrameId); modelMgr.RemoveModel(model); }
public CharacterStoryRelationModel GetNewModel(int characterId, int storyId) { var model = new CharacterStoryRelationModel(characterId, storyId); model.Position = CharacterStoryRelationModel.PositionItems[0]; return model; }