Esempio n. 1
0
            /// <summary>
            /// 根据类型来创建不同的触发条件
            /// </summary>
            /// <param name="type"></param>
            /// <param name="param"></param>
            /// <returns></returns>
            public static ICondition CreateCondition(ECondtionType type, string param)
            {
                switch (type)
                {
                case ECondtionType.WIDGET_IS_SHOW:
                    return(new WidgetIsShow(type, param));

                case ECondtionType.SYSBTN_IS_SHOW:
                    return(new GuideConditionSysBtnIsShow(type, param));

                default:
                    return(null);
                }
            }
 public GuideConditionSysBtnIsShow(ECondtionType type, string param)
     : base(type, param)
 {
 }
Esempio n. 3
0
 public ICondition(ECondtionType type, string param)
 {
     ConditionType = type;
     Init(param);
 }
 public WidgetIsShow(ECondtionType type, string param)
     : base(type, param)
 {
 }