private DispatcherTimer T;
public void timer_Start(double gap) { T.Interval = TimeSpan.FromSeconds(gap); T.Tick += show_time(); T.Start(); }
private void button2_Click(object sender, RoutedEventArgs e) { T.Stop(); }
Tick
Interval
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)