예제 #1
0
파일: PLD.cs 프로젝트: radtek/Gradual
        private void PreenchePLD()
        {
            this.Invoke(new MethodInvoker(delegate()
            {
                MonitorPLDRequest _request = new MonitorPLDRequest();

                if (cbo.Text == "ANALISE")
                {
                    _request.EnumStatusPLD = EnumStatusPLD.EMANALISE;
                }

                if (cbo.Text == "APROVADO")
                {
                    _request.EnumStatusPLD = EnumStatusPLD.APROVADO;
                }

                if (cbo.Text == "REPROVADO")
                {
                    _request.EnumStatusPLD = EnumStatusPLD.REJEITADO;
                }

                MonitorPLDResponse _response = _Monitor.ObterMonitorPLD(_request);

                int contador = _response.lstPLD.Count;

                dgResumo.DataSource = _response.lstPLD;

                lblatualizacao.Text = DateTime.Now.ToString();
            }));
        }