/// <summary> /// Sets the typelist to be true for each input type in the list /// </summary> /// <param name="tList"></param> public void SetTypeList(List <SerializableSystemType> tList) { for (int i = 0; i < typeList.Count; i++) { TypeToggle tt = typeList[i]; if (tList.Contains(tt.type)) { tt.toggled = true; } } }
public override bool Equals(object obj) { TypeToggle otherToggle = obj as TypeToggle; SerializableSystemType t = null; if (otherToggle == null) { t = obj as SerializableSystemType; } else { t = otherToggle.type; } return(t == type); }