private bool MatchesID(WowObject obj) { return obj.ID == currentID; }
private bool MatchesName(WowObject obj) { return obj.name.Equals(currentName); }
private WowObject SetItem_ByID(TourGuideObjective objective, WowObject itemByID) { itemByID = itemIDManager.GetMatchingByID(TextBox_ItemID.Text); if (itemByID == null) { objective.ErrorsPresent = true; TextBox_ItemID.BackColor = Color.Red; TextBox_ItemName.BackColor = Color.Orange; TextBox_ItemName.Text = String.Empty; } else { objective.ItemID = itemByID.ID.ToString(); objective.ItemName = itemByID.name; TextBox_ItemName.Text = itemByID.name; TextBox_ItemID.BackColor = Color.LightGreen; TextBox_ItemName.BackColor = Color.LightGreen; } return itemByID; }