public void CarregaConsole() { try { DataSet retorno = new DataSet(); pConsole console = new pConsole(); retorno = console.CarregaConsole(); if (retorno.Tables[0].Rows.Count > 0) { ddlConsole.CarregaCombo(retorno, "codConsole", "Console"); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public void CarregaConsole() { try { DataSet retorno = new DataSet(); pConsole console = new pConsole(); retorno = console.CarregaConsole(); if (retorno.Tables[0].Rows.Count > 0) { ddlConsole.CarregaCombo(retorno, "codConsole", "Console"); ddlConsoleCadastro.CarregaCombo(retorno,"codConsole","Console"); } } catch (Exception ex) { } }
public void CarregaGrid() { pConsole console = new pConsole(); DataSet set = console.CarregaConsole() ; lvPesquisa.CarregaLv(set); }