示例#1
0
        public void carrega_infor(string store)
        {
            int retorno = 0;

            try
            {
                banco1 = new dados();
                banco1.abreConexao();
                if (banco1.statusSchema() == 1)
                {
                    banco1.singleTransaction("select versaoBanco, versaoSystem, conectorServer, localMachini from system");
                    banco1.procedimentoRead();
                    if (banco1.retornaRead().Read() == true)
                    {
                        VersaoBanco    = banco1.retornaRead().GetString(0);
                        VersaoSystem   = banco1.retornaRead().GetString(1);
                        ConectorServer = banco1.retornaRead().GetString(2);
                        LocalMonitor   = banco1.retornaRead().GetString(3);
                    }
                    else
                    {
                        retorno = 0;
                    }
                }
                else
                {
                    msgInfo msg = new msgInfo(1, "IMPOSSÍVEL ESTABELECER CONEXÃO"); msg.ShowDialog();
                    retorno = 0;
                }
            }
            catch (Exception)
            {
            }
            finally
            {
                if (banco1 != null)
                {
                    banco1.fechaConexao();
                }
            }
        }