Example #1
0
        private void iBankList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            interb slectedItem = iBankList.SelectedItem as interb;

            PhoneApplicationService.Current.State["param"] = slectedItem;
            NavigationService.Navigate(new Uri("/interBankDetails.xaml", UriKind.Relative));
        }
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     b = PhoneApplicationService.Current.State["param"] as interb;
     page_name.Text      = b.bankName;
     tb_accountNumb.Text = b.accountNumbber;
     tb_email.Text       = b.emailAddress;
     tb_userName.Text    = b.userName;
     tb_password.Text    = b.getPassword();
     tb_cell.Text        = b.phoneNumber;
 }
Example #3
0
        public interBank()
        {
            InitializeComponent();


            interb t1 = new interb();

            t1.bankName       = "Standard Chartered";
            t1.emailAddress   = "*****@*****.**";
            t1.accountNumbber = "3265987549879";
            t1.userName       = "******";
            t1.addPassword("hhgsfets");
            t1.phoneNumber = "3336958547";
            iBankCollection.Add(t1);
            iBankList.ItemsSource = iBankCollection;
            iBankList.DataContext = iBankCollection;
        }
Example #4
0
 private void ab_add_Click(object sender, EventArgs e)
 {
     if (bankName_txtBox.Text != null && acctNumber_txtBox.Text != null && emailAddress_txtBox.Text != null &&
         userName_txtBox != null && password_pswdBox.Password != null && mobileNumber_txtBox != null)
     {
         interb temp = new interb();
         temp.bankName       = bankName_txtBox.Text;
         temp.accountNumbber = acctNumber_txtBox.Text;
         temp.emailAddress   = emailAddress_txtBox.Text;
         temp.userName       = userName_txtBox.Text;
         temp.addPassword(password_pswdBox.Password);
         temp.phoneNumber = mobileNumber_txtBox.Text;
         iBankCollection.Add(temp);
         iBankList.ItemsSource = iBankCollection;
         tb_clear();
     }
     else
     {
         MessageBox.Show("Please Enter Required Values", "Error", MessageBoxButton.OK);
     }
 }