private void btnEditSourceOfIncome_Click(object sender, EventArgs e) { ClientSourceOfIncomeDetailUI loClientSourceOfIncomeDetail = new ClientSourceOfIncomeDetailUI(txtClientId.Text, dgvSourceOfIncome.CurrentRow.Cells[0].Value.ToString()); loClientSourceOfIncomeDetail.ShowDialog(); if (loClientSourceOfIncomeDetail.lFromSave) { dgvSourceOfIncome.DataSource = loClientSourceOfIncome.getAllData(txtClientId.Text, ""); } }
private void btnAddSourceOfIncome_Click(object sender, EventArgs e) { ClientSourceOfIncomeDetailUI loClientSourceOfIncomeDetail = new ClientSourceOfIncomeDetailUI(txtClientId.Text); loClientSourceOfIncomeDetail.ShowDialog(); if (loClientSourceOfIncomeDetail.lFromSave) { dgvSourceOfIncome.DataSource = loClientSourceOfIncome.getAllData(txtClientId.Text, ""); } }