private void clientesToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            var consultarCliente = new FormBuscaCliente()
            {
                ControlBox = false,
                MdiParent  = this
            };

            consultarCliente.Show();
        }
        private void BtnLocalizar_Click(object sender, EventArgs e)
        {
            var busca = new FormBuscaCliente
            {
                MdiParent  = this.MdiParent,
                ControlBox = false
            };

            this.Close();
            busca.Show();
        }
Exemple #3
0
        private void BuscaCliente(Locacoes locacao)
        {
            if (locacao is null)
            {
                throw new ArgumentNullException(nameof(locacao));
            }

            var formBuscaCliente = new FormBuscaCliente();

            formBuscaCliente.Show();
        }