private void timer1_Tick(object sender, EventArgs e) { if (tr.lm.getStatus() == Status.FINISH) { IMoveRule v = mls[r.Next(0, mls.Count)]; v.init(); IColorRule c = cs[r.Next(0, cs.Count)]; c.init(); tr = new Tang(v, c, GlobalVariable.tangList[r.Next(0, GlobalVariable.tangList.Count)]); } this.Invalidate(); }
public Tang(IMoveRule lm, IColorRule mc, string content) { this.lm = lm; this.mc = mc; this.content = content; }