public ResetPinPopup(ResetPinWindow caller, bool isSuccessful) { InitializeComponent(); this.caller = caller; this.isSuccessful = isSuccessful; timer = new UITimers(); timer.popUpWindowTimer(this, 20); if (isSuccessful) { successContent.Visibility = Visibility.Visible; failedContent.Visibility = Visibility.Hidden; contentBorder.BorderBrush = new SolidColorBrush(Color.FromArgb(0xFF, 0x2B, 0xE2, 0x0E)); } else { successContent.Visibility = Visibility.Hidden; failedContent.Visibility = Visibility.Visible; } }
private void resetPinButtonPush(object sender, MouseButtonEventArgs e) { ResetPinWindow pin = new ResetPinWindow(this, customer); pin.Show(); }