private void FormEstoqueContagem_Load(object sender, EventArgs e) { for (int i = 0; i < dataGridViewLancarEstoqueDetalhes.ColumnCount; i++) { dataGridViewLancarEstoqueDetalhes.Columns[i].AutoSizeMode = DataGridViewAutoSizeColumnMode.NotSet; } if (gridLancarEstoqueColecao.Count > 0) { estoqueContarInfo = produtoNegocios.ConstularEstoqueContarId(gridLancarEstoqueColecao[0].id); if (estoqueContarInfo != null) { if (estoqueContarInfo.estoquecontarconfirmado == 1 && estoqueContarInfo.estoquecontaridunidade == Form1.Unidade.uniid) { PreencherFormEstoque(estoqueContarInfo); } } } if (ProdContagem) { this.Text = "CONTAGEM POR PRODUTO"; this.labelTitle.Text = "CONTAGEM POR PRODUTO"; } else { this.Text = "CONTAGEM DO ESTOQUE"; this.labelTitle.Text = "CONTAGEM DO ESTOQUE"; } }