private void btCadProdutos_Click(object sender, EventArgs e) { //Design Button panelSide.Height = btCadastroProdutos.Height; panelSide.Top = btCadastroProdutos.Top; Catalogo catalogo = new Catalogo(); CadastroDeProduto cadastro = new CadastroDeProduto(true, 0, catalogo); cadastro.ShowDialog(); //Logic Button }
private void button1_Click(object sender, EventArgs e) { CadastroDeProduto cadastro = new CadastroDeProduto(false, id, this); cadastro.ShowDialog(); }