Example #1
0
        private void Bt_AdicionarCliente_Click(object sender, EventArgs e)
        {
            frm_ClientesManutencao frm = new frm_ClientesManutencao(0);

            frm.ShowDialog();
            repository.Inserir(frm.ClientesManutencao);
            AtualizarGrid();
        }
Example #2
0
        private void DataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dgrid_Clientes.Columns[e.ColumnIndex].Name == "bt_Editar") // Editar
            {
                Cliente itemSelecionado = (Cliente)dgrid_Clientes.Rows[e.RowIndex].DataBoundItem;

                frm_ClientesManutencao frm = new frm_ClientesManutencao(itemSelecionado.Id);
            }
        }