static LotteryRuleFactory() { ms_LotteryRuleMap = new Dictionary <string, ILotteryRule>(); //Toggle SuperBigLotteryRule.Toggle(); DoubleColorBallRule.Toggle(); }
static DoubleColorBallRule() { DoubleColorBallRule rule = new DoubleColorBallRule(); LotteryRuleFactory.Regist(rule.GetLotteryType(), rule); }