public void Rain() { while (true) { System.Threading.Thread.Sleep(2000); if (rn.Next(2) == 0) { rain = false; } else { rain = true; } if (WS != null) { TimeOfTick tot = new TimeOfTick(); tot.Rain = rain; WS(this, tot); } } }
private void HeardIt(MeterologickaStanice w, TimeOfTick e) { Console.WriteLine("{0}", e.Rain); }