public ClienteController(IClienteRepository clienteRepository)
 {
     _criarCliente     = new CriarCliente(clienteRepository);
     _alterarCliente   = new AlterarCliente(clienteRepository);
     _consultarCliente = new ConsultarCliente(clienteRepository);
     _excluirCliente   = new ExcluirCliente(clienteRepository);
 }
        private void clienteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ConsultarCliente consultarCliente = new ConsultarCliente();

            consultarCliente.MdiParent = this;
            consultarCliente.Show();
        }
        private void btnConsultar_Click(object sender, EventArgs e)
        {
            ConsultarCliente consultarCliente = new ConsultarCliente();

            this.Visible = false;
            consultarCliente.Show();
        }
예제 #4
0
        private void listarClientesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ConsultarCliente cc = new ConsultarCliente();

            cc.ShowDialog();
        }
예제 #5
0
        private void clienteToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            ConsultarCliente concultCliente = new ConsultarCliente();

            concultCliente.ShowDialog();
        }