/// <summary> /// opens formular for withdrawal /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmdWithdrawal_Click(object sender, EventArgs e) { using (frmTransaction newForm = new frmTransaction(2)) { newForm.ShowDialog(); } }
/// <summary> /// opens formular new transaction /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmdNewTransaction_Click(object sender, EventArgs e) { using (frmTransaction newForm = new frmTransaction(3)) { newForm.ShowDialog(); } }
private void cmdNewTransaction_Click(object sender, EventArgs e) { using (frmTransaction newForm = new frmTransaction(_clientManagmentViewModel.Account)) { newForm.ShowDialog(); } }
private void cmdDeposit_Click(object sender, EventArgs e) { using (frmTransaction newForm = new frmTransaction('D', indexAccount)) { newForm.ShowDialog(); } }
private void cmdNewTransaction_Click(object sender, EventArgs e) { using (frmTransaction newForm = new frmTransaction(3, int.Parse(dgwClientInfo.Rows[0].Cells[0].Value.ToString()))) { newForm.ShowDialog(); } FillGrid(); }
private void cmdNewTransaction_Click(object sender, EventArgs e) { using (frmTransaction newForm = new frmTransaction(_clientRepository.Client.ClientID, 0)) { newForm.ShowDialog(); frmClientManagement_Load(sender, e); } }
/// <summary> /// open form where we are creating a new transaction /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmdNewTransaction_Click(object sender, EventArgs e) { using (frmTransaction newForm = new frmTransaction(_logic, _clientIdCard)) { newForm.ShowDialog(); } FillOverview(); }
private void cmdNewTransaction_Click(object sender, EventArgs e) { int clientId = _client.Id; using (frmTransaction newForm = new frmTransaction(clientId)) { if (newForm.ShowDialog() == DialogResult.OK) { RefreshData(clientId); } } }
private void cmdWithdrawal_Click(object sender, EventArgs e) { deposit = false; using (frmTransaction newForm = new frmTransaction(_clientManagmentViewModel.Account, deposit)) { newForm.ShowDialog(); if (newForm.DialogResult == DialogResult.OK) { _clientManagmentViewModel.UpdateAccountAmount(); dgvAccount.DataSource = _clientManagmentViewModel.LoadUpdatedClientManagment(_clientManagmentViewModel.Account.Id); } } }
private void cmdNewTransaction_Click(object sender, EventArgs e) { if (_frmClientManagementViewModel.IsAccountOpen(_accountId)) { using (frmTransaction newForm = new frmTransaction(new FrmTransactionViewModel(), _accountId)) { newForm.ShowDialog(); } } else { MessageBox.Show("It's not possible to make new transaction, the account is canceled"); } }