Пример #1
0
        private void clientesToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            var consultarCliente = new FormBuscaCliente()
            {
                ControlBox = false,
                MdiParent  = this
            };

            consultarCliente.Show();
        }
Пример #2
0
        private void BtnLocalizar_Click(object sender, EventArgs e)
        {
            var busca = new FormBuscaCliente
            {
                MdiParent  = this.MdiParent,
                ControlBox = false
            };

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

            var formBuscaCliente = new FormBuscaCliente();

            formBuscaCliente.Show();
        }