public ProxyStory(ModelStory story) { mStory = story; Quests = new ObservableCollection<ProxyQuest>(); foreach (ModelQuest quest in mStory.Quests) { ProxyQuest pq = new ProxyQuest(quest); Quests.Add(pq); } }
public ProxyStory(ModelStory story) { mStory = story; Quests = new ObservableCollection <ProxyQuest>(); foreach (ModelQuest quest in mStory.Quests) { ProxyQuest pq = new ProxyQuest(quest); Quests.Add(pq); } }
public void AddQuest(ProxyQuest quest, int index = -1) { if (index == -1 || index >= Quests.Count) { Quests.Add(quest); Value.Quests.Add(quest.Value); } else { Quests.Insert(index, quest); Value.Quests.Insert(index, quest.Value); } quest.Parent = this; }
public void RemoveQuest(ProxyQuest quest) { Quests.Remove(quest); Value.Quests.Remove(quest.Value); quest.Parent = null; }
public AddQuest(ProxyStory story, ProxyQuest quest) { mStory = story; mQuest = quest; }
public DelQuest(ProxyStory story, ProxyQuest quest) { mStory = story; mQuest = quest; mIndex = mStory.Quests.IndexOf(mQuest); }
public AddStage(ProxyQuest quest, ProxyStage stage) { mQuest = quest; mStage = stage; }