private void ItemTypeChangeEvent(object sender, KeyValuePair <ItemInMenu, FF8String> e) { CURSOR_SELECT = 0; if (Item.Equals(e.Key) && Page <= 0) { return; } Page = 0; var sameTargets = Item.ItemTarget != e.Key.ItemTarget || Item.ItemType != e.Key.ItemType; if (!sameTargets) { sameTargets = (Item.ItemType == ItemType.GFLearn && Item.Learn != e.Key.Learn); sameTargets = sameTargets || (Item.ItemType == ItemType.BlueMagic && Item.LearnedBlueMagic != e.Key.LearnedBlueMagic); } Item = e.Key; if (!sameTargets && !_forceRefresh) { return; } Fill(); base.Refresh(); _forceRefresh = false; }
private void ItemChangeEvent(object sender, KeyValuePair <ItemInMenu, FF8String> e) => _item = e.Key;