private void btnAddConversation_Click(object sender, EventArgs e) { frmProspectCustomerConversation frmProspCustomerConversation = new frmProspectCustomerConversation(_prospectClient); if (frmProspCustomerConversation.ShowDialog() == DialogResult.OK && btnHideConversation.Visible) { getConversationDetails(); } }
private void btnEditConversation_Click(object sender, EventArgs e) { try { int selectedRowIndex = dataGridConversation.SelectedRows[0].Index; int selectedId = int.Parse(dataGridConversation.SelectedRows[0].Cells["ID"].Value.ToString()); frmProspectCustomerConversation frmProspCustomerConversation = new frmProspectCustomerConversation(_prospectClient, selectedId); if (frmProspCustomerConversation.ShowDialog() == DialogResult.OK && btnHideConversation.Visible) { getConversationDetails(); } } catch (Exception ex) { Logger.LogDebug(ex.ToString()); } }