예제 #1
0
        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;
            }
        }
예제 #2
0
 public RecommendTeamSetting(GlobalVars.RecommendType type, EElement elem)
 {
     this.recommendedType    = type;
     this.recommendedElement = elem;
 }
예제 #3
0
 public TypeAndStr(GlobalVars.RecommendType type, string title)
 {
     this.type  = type;
     this.title = title;
 }