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