public ConfigureCommandRequest(HandshakeResponse response, shareAction1 s1, shareAction2 s2) : base(response, s1, s2) { this.dataBelong = 0; this.number = FrequencyAction.GetNuRenewAction(); this.dotPwoer = ChannelAction.GetNuRenewAction(); this.request = DateAction.GetNuRenewAction(); }
//相对时间无效 public void Update(DateTime dt) { if (!mEnable) { return; } for (int i = mActions.Count - 1; i >= 0; --i) { DateAction te = mActions [i] as DateAction; if (!te.IsTimeOk(dt)) { continue; } te.DoAction(); } for (int i = 0, max = mChilds.Count; i < max; ++i) { mChilds[i].Update(dt); } }
public void SetDate(DateTime time) { this.request = DateAction.GetRenewAction(time); }