private void btnDebit_Click(object sender, RoutedEventArgs e) { BankManagementSystem.DATA_SET.BMSDataSetTableAdapters.GetAccountInfoTableAdapter accountInfo = new GetAccountInfoTableAdapter(); accountInfo.CreditDebitAccount(int.Parse(comboAccountList.Text), "Dr", int.Parse(comboTranAmmount.Text), "Cash"); MessageBox.Show("Account " + comboAccountList.Text + " Debited By" + comboTranAmmount.Text + " Successfully "); }
private void btnDeleteAccount_Click(object sender, RoutedEventArgs e) { BankManagementSystem.DATA_SET.BMSDataSetTableAdapters.GetAccountInfoTableAdapter accountInfo = new GetAccountInfoTableAdapter(); accountInfo.Admin_CloseAnAccount(int.Parse(comboAccountList.Text)); MessageBox.Show("Account Deleted Successfully "); }
private void btnDebitAccount_Click(object sender, RoutedEventArgs e) { BankManagementSystem.DATA_SET.BMSDataSetTableAdapters.GetAccountInfoTableAdapter accountInfo = new GetAccountInfoTableAdapter(); accountInfo.CreditDebitAccount(int.Parse(lblAccountId.Text), "Dr", int.Parse(comboTranAmmount.Text), comboSecondAccount.Text); MessageBox.Show("Successfully transfer money to account " + comboSecondAccount.Text + " By" + comboTranAmmount.Text + " Rupees"); }
private void btnOpenNewAccount_Click(object sender, RoutedEventArgs e) { if (txtName.Text != string.Empty && txtAddress.Text != string.Empty && txtAge.Text != string.Empty && txtEmail.Text != string.Empty && txtPassword.Text != string.Empty) { BankManagementSystem.DATA_SET.BMSDataSetTableAdapters.GetAccountInfoTableAdapter bms = new GetAccountInfoTableAdapter(); bms.NewAccount(txtName.Text, txtAddress.Text, txtContactNumber.Text, comboTitle.Text, txtAge.Text, Int32.Parse(comboAnnualIncome.Text), Int32.Parse(comboOpeningAmmount.Text), txtEmail.Text, txtPassword.Text); txtName.Text = ""; txtAddress.Text = ""; txtContactNumber.Text = ""; txtAge.Text = ""; MessageBox.Show("New Account Successfully Created"); } else { MessageBox.Show("Enter all required field..."); } }