public void SaveSettings() { GlobalVars.RecommendType type = this.items[this.currentTypeIndex].type; EElement element = this.elements[this.currentElemmentIndex].element; if (Enum.IsDefined(typeof(GlobalVars.RecommendType), (object)type) && Enum.IsDefined(typeof(EElement), (object)element)) { GlobalVars.RecommendTeamSettingValue = new GlobalVars.RecommendTeamSetting(type, element); } else { GlobalVars.RecommendTeamSettingValue = (GlobalVars.RecommendTeamSetting)null; } }
public RecommendTeamSetting(GlobalVars.RecommendType type, EElement elem) { this.recommendedType = type; this.recommendedElement = elem; }
public TypeAndStr(GlobalVars.RecommendType type, string title) { this.type = type; this.title = title; }