예제 #1
0
        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();
            }
        }
예제 #2
0
        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;
        }
예제 #3
0
 private void AS7000HRM_Timer_Tick(ThreadPoolTimer timer)
 {
     Htimer.Cancel();
     InitBioSensor(TestMaxCount);
 }