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