//Pin Entry Page Event Handler Functions private void enterNumToPin(object sender, RoutedEventArgs e) { string num = (((Button)sender).Content.ToString()); if (currentPin.Length < 4) { PinErrorInfo.Visibility = Visibility.Hidden; PinEntry.AppendText("• "); currentPin += num; } else { PinEntryErrorMessage.Text = "Pin can only be 4 digits long"; PinErrorInfo.Visibility = Visibility.Visible; } }
private void Clockedin_Collapsed(object sender, RoutedEventArgs e) { PinEntry.Focus(); }