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;
 }
        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;
        }
        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);
            }

        }