private void MultiplePayments_Load(object sender, EventArgs e) { try { var service = (OpenBalanceResponse)DenhacService.GetOpenBalanceService(); if (service.transactionStatus) { bs_openBalanceResponse.DataSource = service.rows; // Default to selecting the first row if (service.rows.Count > 0) { member = (DenhacClientAPI.ResponseObjects.Member)dgv_openBalances.Rows[0].DataBoundItem; btn_viewAccount.Enabled = true; } else { btn_viewAccount.Enabled = false; } } } catch (Exception exception) { MessageBox.Show(exception.ToString()); } }
private void dgv_openBalances_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex >= 0) { DataGridViewRow row = dgv_openBalances.Rows[e.RowIndex]; member = (DenhacClientAPI.ResponseObjects.Member)dgv_openBalances.CurrentRow.DataBoundItem; } }
public MemberAccount(DenhacClientAPI.ResponseObjects.Member i_member) { this.member = i_member; InitializeComponent(); }