Помогите написать код для остановки таймера в Noarend_Click.
private void Arend_Click(object sender, EventArgs e)
{
date = DateTime.Now;
Timer timer = new Timer();
timer.Interval = 10;
timer.Tick += new EventHandler(tickTimer);
timer.Start();
Timer.Visible = true;
Arend.Visible = false;
Noarend.Visible = true;
}
private void tickTimer(object sender, EventArgs e)
{
long tick = DateTime.Now.Ticks - date.Ticks;
DateTime stopWatch = new DateTime();
stopWatch = stopWatch.AddTicks(tick);
Timer.Text = String.Format("{0:HH:mm:ss}", stopWatch);
}
private void Noarend_Click(object sender, EventArgs e)
{
}