/// <summary> /// Cancels Current enrollment operation /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void CancelEnrollment_Clicked(object sender, RoutedEventArgs e) { // Cancel ongoing enrollment operation _currentOperation.OnCalcel(); // Default the active thumbnail button background back to transparent _activeThumbnailBtn.Background = Brushes.Transparent; foreach (var thumbnail in _activeThumnails) { if (thumbnail.IndexNumber.ToString() == _activeImage.Tag.ToString()) { // Sets the image of active thumbnail back to its default _activeImage.Source = new BitmapImage(new Uri(thumbnail.ImgPath, UriKind.RelativeOrAbsolute)); } } // Set Active label foreground color SetLblForegroundColor(_activeTextBlock, "ForegroundMainBrush"); // Sets ThumbnailLarge image source and height properties to default ThumbnailLarge.Height = 150; ThumbnailLarge.Source = new BitmapImage(new Uri("/Images/HandAndDevice.png", UriKind.RelativeOrAbsolute)); // Defaulting label for enrollment percentage back to zero LblPercentage.Text = "0%"; }
private void btnStop_Click(object sender, EventArgs e) { m_Operation.OnCalcel(); }