Пример #1
0
        private void AtualizarListaDeOS()
        {
            System.Data.DataTable TabelaOS = new System.Data.DataTable();

            TabelaOS = ControllerOrdemServico.CarregarListaDeIds();
            if (TabelaOS.Rows.Count != 0)
            {
                foreach (System.Data.DataRow r in TabelaOS.Rows)
                {
                    foreach (System.Data.DataColumn c in TabelaOS.Columns)
                    {
                        Txt_IDPesquisa.Items.Add(r[c].ToString());
                    }
                }
            }
        }
Пример #2
0
        private void CarregarListaDeIds()
        {
            Txt_Ids.Items.Clear();

            DataTable tabela = new DataTable("InformacoesIDs");

            tabela = ControllerOrdemServico.CarregarListaDeIds();

            foreach (DataRow r in tabela.Rows)
            {
                foreach (DataColumn c in tabela.Columns)
                {
                    Txt_Ids.Items.Add(r[c].ToString());
                }
            }
        }