/// <summary> /// Opens formular for update customer(register) /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmdUpdate_Click(object sender, EventArgs e) { using (frmAccount newForm = new frmAccount(custIdNext)) { newForm.ShowDialog(); } }
private void cmdNewAccount_Click(object sender, EventArgs e) { using (frmAccount newForm = new frmAccount()) { newForm.ShowDialog(); } }
private void cmdUpdate_Click(object sender, EventArgs e) { using (frmAccount newForm = new frmAccount(indexClient, indexAccount)) { newForm.ShowDialog(); } }
private void cmdNewAccount_Click(object sender, EventArgs e) { using (frmAccount newForm = new frmAccount(new FrmAccountViewModel())) { newForm.Text = "Add account"; newForm.ShowDialog(); } }
/// <summary> /// Used when viewing/updating existing client. /// </summary> /// <param name="clientId"></param> private void cmdUpdate_Click(object sender, EventArgs e) { using (frmAccount newForm = new frmAccount(int.Parse(dgwClientInfo.Rows[0].Cells[1].Value.ToString()))) { newForm.ShowDialog(); } FillGrid(); }
/// <summary> /// goes into update form and updates user info /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmdUpdate_Click(object sender, EventArgs e) { using (frmAccount newForm = new frmAccount(_logic, _clientIdCard)) { newForm.ShowDialog(); } FillOverview(); }
private void cmdUpdate_Click(object sender, EventArgs e) { using (frmAccount newForm = new frmAccount(_clientId)) { DialogResult dialogResult = newForm.ShowDialog(); if (dialogResult == DialogResult.OK) { frmClientManagement_Load(sender, e); } } }
private void cmdUpdate_Click(object sender, EventArgs e) { var clientId = _client.Id; using (frmAccount newForm = new frmAccount(clientId)) { if (newForm.ShowDialog() == DialogResult.OK) { RefreshData(clientId); } } }
private void cmdUpdate_Click(object sender, EventArgs e) { using (frmAccount newForm = new frmAccount(_clientManagmentViewModel.Account.Id)) { newForm.ShowDialog(); if (newForm.DialogResult == DialogResult.OK) { dgvAccount.DataSource = _clientManagmentViewModel.LoadUpdatedClientManagment(_clientManagmentViewModel.Account.Id); dgvAccount.DataMember = "Account"; dgvAccount.Columns["Id"].Visible = false; } } }
private void cmdUpdate_Click(object sender, EventArgs e) { using (frmAccount newForm = new frmAccount(new FrmAccountViewModel(), _accountId)) { if (_frmClientManagementViewModel.IsAccountOpen(_accountId)) { newForm.Text = "Edit account"; newForm.ShowDialog(); } else { MessageBox.Show("It's not possible to update, account is canceled!"); } } }