protected void t2_Tick(object sender, EventArgs e) { Tick2.update(upl1, Index.stm); Tick2.update(upl4, Index.stm); Tick2.update(upl3, Index.stm); Tick2.update(upl2, Index.stm); Tick2.update(upl6, Index.stm); Tick2.update(upl7, Index.stm); Tick2.update(upl8, Index.stm); Tick2.update(upl5, Index.stm); }
static void Main(string[] args) { Tick1 tick1 = new Tick1("Bishkek", 12); tick1.Init(); tick1.Run(); Tick2 tick2 = new Tick2("Tashkiria", 4); tick2.Init(); tick2.Run(); Tick3 tick3 = new Tick3("Tadzhik", 7); tick3.Init(); tick3.Run(); Timer timer1 = new Timer("lol", 3); timer1.TimeMessage += timer1.MessageFromTimer1; timer1.Foo(); }