private void button1_Click(object sender, EventArgs e) { addLog("START LargeIntervaleTimer"); myDict.Clear(); myDict2.Clear(); timer = new OpenNETCF.WindowsCE.LargeIntervalTimer(); listUserNotifications(true); timer.Interval = new TimeSpan(1, 0, 0); timer.Tick += new EventHandler(timer_Tick); timer.Enabled = true; listUserNotifications(false); }
private void btnStop_Click(object sender, EventArgs e) { addLog("STOP LargeIntervaleTimer"); if (timer != null) { timer.Tick -= timer_Tick; timer.Dispose(); timer = null; } myDict2.Clear(); listUserNotifications(false); }