protected void t3_Tick(object sender, EventArgs e) { Tick3.update(upt1, Index.sth); Tick3.update(upt4, Index.sth); Tick3.update(upt3, Index.sth); Tick3.update(upt2, Index.sth); Tick3.update(upt6, Index.sth); Tick3.update(upt7, Index.sth); Tick3.update(upt8, Index.sth); Tick3.update(upt5, Index.sth); }
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(); }