private void appBarButton_Click(object sender, RoutedEventArgs e) { if (this.Frame.CanGoBack) { if (Atimer != null) { Atimer.Cancel(); } if (Gtimer != null) { Gtimer.Cancel(); } if (Vtimer != null) { Vtimer.Cancel(); } if (Ctimer != null) { Ctimer.Cancel(); } if (Ftimer != null) { Ftimer.Cancel(); } if (Htimer != null) { Htimer.Cancel(); } this.Frame.GoBack(); } }
private void btnStop_Click(object sender, RoutedEventArgs e) { if (Atimer != null) { Atimer.Cancel(); } if (Gtimer != null) { Gtimer.Cancel(); } if (Vtimer != null) { Vtimer.Cancel(); } if (Ctimer != null) { Ctimer.Cancel(); } if (Ftimer != null) { Ftimer.Cancel(); } if (Htimer != null) { Htimer.Cancel(); } combox.IsEnabled = true; combox2.IsEnabled = true; btnStart.IsEnabled = true; btnStop.IsEnabled = false; }
private void AS7000HRM_Timer_Tick(ThreadPoolTimer timer) { Htimer.Cancel(); InitBioSensor(TestMaxCount); }