예제 #1
0
        private void Login_Load(object sender, EventArgs e)
        {
            // CONEXAO

            string erro;

            while (!Manager.AbrirConexao(out erro))
            {
                DialogResult dr = MessageBox.Show(erro, "Erro de conexão", MessageBoxButtons.RetryCancel, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);

                if (dr == DialogResult.Cancel)
                {
                    Application.Exit();
                    break;
                }
            }

            // FIM CONEXAO

            lb_titulo.Text = "";
        }