private void Bt_Criar_Prod_Click(object sender, EventArgs e) { TelaCriarProd telaCriar = new TelaCriarProd(true); telaCriar.ShowDialog(); carregarListaEstoque(); }
private void Bt_Editar_Prod_Click(object sender, EventArgs e) { if (listaProdutos.SelectedItems.Count > 0) { TelaCriarProd telaCriar = new TelaCriarProd(false, Convert.ToInt32(listaProdutos.SelectedItems[0].SubItems[6].Text)); telaCriar.ShowDialog(); carregarListaEstoque(); } else { MessageBox.Show("Não foi selecionado nenhum produto"); } }