void TagDeletableStackPanel_OnModelIsAppearedChangedEvent(object sender, CommonControls.OnModelIsAppearedChangedEventArgs e) { if (SelectingModel == null) { return; } var lvItem = sender as AppearListViewItemModel; var chara = lvItem.ParentObject as TagModel; if (chara != null) { ChangeIsAppearedTag(chara, e.IsAppeared); return; } }
void OnAppearListViewItemModelChangedEvent(object sender, OnModelIsAppearedChangedEventArgs e) { if (SelectingModel == null) { return; } var lvItem = sender as AppearListViewItemModel; var chara = lvItem.ParentObject as CharacterModel; if (chara != null) { ChangeIsAppearedCharacterStoryModel(chara, e.IsAppeared); return; } var item = lvItem.ParentObject as ItemModel; if (item != null) { ChangeIsAppearedItemStoryModel(item, e.IsAppeared); return; } }