Example #1
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 #2
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);
     }
 }