private void UserControl_Loaded(object sender, RoutedEventArgs e)
 {
     BankManagementSystem.DATA_SET.BMSDataSetTableAdapters.GetAccountSummaryTableAdapter bms = new GetAccountSummaryTableAdapter();
     dt  = bms.GetData(accountId);
     dt1 = bms.GetAccountDetailsById(accountId);
     TextBlockAvaliableBalance.Text     = dt1.Rows[0]["Ammount"].ToString();
     TextBlockWelcome.Text              = "Welcome " + dt.Rows[0]["Name"].ToString();
     DataGridAccountSummary.DataContext = dt;
 }
Пример #2
0
        private void btnCheckBalance_Click(object sender, RoutedEventArgs e)
        {
            BankManagementSystem.DATA_SET.BMSDataSetTableAdapters.GetAccountSummaryTableAdapter bms = new GetAccountSummaryTableAdapter();
            dt = bms.GetAccountDetailsById(Int32.Parse(comboAccountList.Text));
            TextBlockAvaliableBalance.Text = dt.Rows[0]["Ammount"].ToString();
            TextBlockWelcome.Text          = dt.Rows[0]["Name"].ToString();

            dtTransaction = bms.GetData(Int32.Parse(comboAccountList.Text));
            DataGridAccountSummary.DataContext = dtTransaction;
        }