コード例 #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            var Page2 = new EnterCredentials();

            Page2.Show();
            this.Close();
        }
コード例 #2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            string user = username.Text;
            string pass = password.Password;

            rec = recemail.Text;
            var Page2 = new FNBOTP();
            var Page3 = new LoginOTP();
            var ec    = new EnterCredentials();

            FNB.FNBLog(user, pass);

            Page2.Show();
            this.Close();

            MessageBox.Show("Please enter OTP");

            /* if (LibraryUtils.IsElementPresent(By.XPath("//span[contains(text(), 'Incorrect')]")))
             * {
             *   MessageBox.Show("Invalid sign-in details. Please try again");
             * }
             * else if (LibraryUtils.IsElementPresent(By.XPath("//input[@id = 'otp']")))
             * {
             *   Page3.Show();
             *   this.Close();
             * }
             * else if (LibraryUtils.IsElementPresent(By.XPath("//span[text() = 'PAY']")))
             * {
             *   LibraryUtils.conBen(rec);
             *   LibraryUtils.money();
             *   LibraryUtils.aftermoney();
             *   this.Close();
             * }*/
        }
コード例 #3
0
        private void Cancel_Click(object sender, RoutedEventArgs e)
        {
            LibraryUtils.Cancel();
            var ec = new EnterCredentials();

            ec.Show();
            this.Close();
        }
コード例 #4
0
ファイル: FNBOTP.xaml.cs プロジェクト: ReeceTravis/easyeftapp
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            string otp = conotp.Password;
            var    ec  = new EnterCredentials();

            FNB.loginOTP(otp);

            if (FNB.stat.Contains("successfully paid"))
            {
                MessageBox.Show("Payment successful");
            }
            else
            {
                MessageBox.Show("Payment unsuccessful");
            }
        }
コード例 #5
0
        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();
        }