private void metroTile2_Click(object sender, EventArgs e)
        {
            if (this.ActiveMdiChild != null)
            {
                this.ActiveMdiChild.Close();
            }
            FrmCadCarros car = new FrmCadCarros();

            car.Show();
        }
Esempio n. 2
0
        private void alterarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmCadCarros frm = new FrmCadCarros();

            frm.txtPlaca.Text     = DgClientes.SelectedCells[0].Value.ToString();
            frm.txtCategoria.Text = DgClientes.SelectedCells[1].Value.ToString();
            frm.txtCor.Text       = DgClientes.SelectedCells[2].Value.ToString();
            frm.TxtModelo.Text    = DgClientes.SelectedCells[3].Value.ToString();
            frm.TxtAno.Text       = DgClientes.SelectedCells[4].Value.ToString();
            frm.Show();
            frm.button1.Visible    = false;
            frm.BtnAlterar.Visible = true;

            BtnConsulta_Click(sender, e);
        }