private void Button_Click(object sender, RoutedEventArgs e) { var Page2 = new EnterCredentials(); Page2.Show(); this.Close(); }
private void Cancel_Click(object sender, RoutedEventArgs e) { LibraryUtils.Cancel(); var ec = new EnterCredentials(); ec.Show(); this.Close(); }
private void Button_Click(object sender, RoutedEventArgs e) { string otp = conotp.Password; var ec = new EnterCredentials(); LibraryUtils.OTPSequence(otp); if (LibraryUtils.con.Contains("successful")) { MessageBox.Show("Payment successful"); } else { MessageBox.Show("Payment unsuccessful"); } ec.Show(); this.Close(); }