private void listarAutomoveis(object sender, EventArgs e) { listaAutomovel listaAutomovel = new listaAutomovel(); listaAutomovel.MdiParent = this; listaAutomovel.Show(); listaAutomovel.WindowState = FormWindowState.Maximized; }
private void voltar(object sender, EventArgs e) { listaAutomovel listaAutomovel = new listaAutomovel(); listaAutomovel.MdiParent = this.MdiParent; listaAutomovel.Show(); listaAutomovel.WindowState = FormWindowState.Maximized; this.Close(); }