Exemplo n.º 1
0
        public new async void Exit( )
        {
            CommonRes.TcpControl.FinalizationTcpConnection( );

            CommonRes.SerialControl.FinalizationPort( );

            await FingerprintDevice.CancelTask( );

            CommonRes.GPIOControl.PowerOffFingerprintPower( );

            base.Exit( );
        }
 public async Task StopAttendanceTask( )
 {
     await FingerprintDevice.CancelTask( );
 }
        private async void ContentDialog_CloseButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args)
        {
            await FingerprintDevice.CancelTask( );

            this.DialogResult = new CommonResult(ResultCode.GN_TASK_CANCEL);
        }