コード例 #1
0
        //Botao placa
        private void Button1_Click(object sender, EventArgs e)
        {
            TelaCarros tela = new TelaCarros();

            tela.ShowDialog();
            CarroRepository repositoryCarro = new CarroRepository();

            carro = repositoryCarro.ObterPelaPlaca(tela.Placa);
            maskedTextBox1.Text = carro.Placa;
        }
コード例 #2
0
        private void CarrosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TelaCarros tela = new TelaCarros();

            tela.ShowDialog();
        }