Exemplo n.º 1
0
        /*--------------------------------------------------------------------------------------*/
        private void btn_AddNew_Click(object sender, EventArgs e)
        {
            Form form = new frm_AddNewMember();

            form.ShowDialog();
            RefreshGrid();
        }
Exemplo n.º 2
0
        private void dgv_Members_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            Members temp = dgv_Members.SelectedRows[0].DataBoundItem as Members;
            Form    frm  = null;

            if (temp != null)
            {
                if (e.ColumnIndex == 6)
                {
                    frm = new frm_AddPayment(temp);
                }
                else if (e.ColumnIndex == 7)
                {
                    frm = new frm_ShowReport(temp);
                }
                else
                {
                    frm = new frm_AddNewMember(temp);
                }
            }
            frm.ShowDialog();
        }