private void LimpaDados()
 {
     edtDtHrVenda.Value = RotinasGlobais.Rotinas.retDataHoraStr(true, true);
     edtCodigo.Clear();
     edtDescricao.Clear();
     edtISBN.Clear();
     edtLivro.Clear();
     lstLivros.Clear();
     nPrecoTotal         = 0;
     edtPrecoTotal.Value = "R$ 0,00";
     edtCodigo.SetFocus();
 }
        protected override void InformaLimpaDados(bool bInformar)
        {
            base.InformaLimpaDados(bInformar);

            if (bInformar)
            {
                edtEdicao.SetValue(Campos[2].ToString());
                edtAnoPubli.SetValue(Campos[3].ToString());
                edtVolume.SetValue(Campos[4].ToString());
                edtCodEditora.Value       = Campos[5].ToString();
                edtEditora.Value          = Campos[6].ToString();
                cmbIdioma.StringSelection = Campos[8].ToString();
                edtNPaginas.SetValue(Campos[9].ToString());
                edtPreco.Value = RotinasGlobais.Rotinas.VirgulaParaPonto(
                    Campos[10].ToString(), true);
                edtQtdEstoque.SetValue(Campos[11].ToString());
                RotinasGlobais.Rotinas.AdicionaValoresLista(
                    ConsultasSQL.ConsSQL.LivroAss('S',
                                                  edtCodigo.Value, ""), lstAssuntos, slAssuntos);
                RotinasGlobais.Rotinas.AdicionaValoresLista(
                    ConsultasSQL.ConsSQL.LivroAut('S',
                                                  edtCodigo.Value, ""), lstAutores, slAutores);
            }
            else
            {
                edtEdicao.SetValue("1");
                edtAnoPubli.SetValue(
                    RotinasGlobais.Rotinas.retDataHoraStr(true, false).Substring(6, 4));
                edtVolume.SetValue("1");
                edtCodEditora.Clear();
                edtEditora.Clear();
                cmbIdioma.Selection = 0;
                edtNPaginas.SetValue("1");
                edtPreco.Value = "0,00";
                edtQtdEstoque.SetValue("1");
                edtCodAssunto.Clear();
                lstAssuntos.Clear();
                edtCodAutor.Clear();
                lstAutores.Clear();
                slAssuntos.Clear();
                slAutores.Clear();
            }
        }
        //---------------------------------------------------------------------------
        public void AdicionaValoresLista(string sTextoSql,
                                         wx.ListBox lstLista, ArrayList slCodLista)
        {
            lstLista.Clear();
            slCodLista.Clear();

            OleDbCommand Consulta = gConexao.CreateCommand();

            Consulta.CommandText = sTextoSql;

            OleDbDataReader Leitor = Consulta.ExecuteReader();

            while (Leitor.Read())
            {
                slCodLista.Add(Leitor.GetValue(0).ToString());
                lstLista.Append(Leitor.GetValue(0).ToString() + " - " +
                                Leitor.GetValue(1).ToString());
            }
            Leitor.Close();
        }