コード例 #1
0
        private void PesquisaFerramentas_Aditivas()
        {
            Objects.LimpaOrdenacaoColunasGrid(udgv_Additive);
            udgv_Additive.DataSource = SQLQueries.ConsultaFerramentas_Aditive(txtAdditive_Desc.Text, icbxAdditive_Tipo.SelectedIndex - 1, txtAdditive_Diam.Text, cbxAdditive_Unidade.SelectedIndex - 1);

            if (udgv_Additive.Rows.Count > 0)
            {
                lblAdditive_Qtde.Text    = String.Format("Quantidade de ferramentas encontradas: {0}", udgv_Additive.Rows.Count.ToString());
                lblAdditive_Qtde.Visible = true;
            }
            else
            {
                lblAdditive_Qtde.Visible = false;
            }
        }