/// <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) { }
public ICondition(ECondtionType type, string param) { ConditionType = type; Init(param); }
public WidgetIsShow(ECondtionType type, string param) : base(type, param) { }