Ejemplo n.º 1
0
        private void BtnTest_Click(object sender, EventArgs e)
        {
            if (String.IsNullOrEmpty(TxtServer.Text) || String.IsNullOrEmpty(TxtUsername.Text) || String.IsNullOrEmpty(TxtPassword.Text))
            {
                MessageBox.Show("Server information cannot be empty.");

                return;
            }

            SqlOperations.ConnectTest(TxtServer.Text, TxtUsername.Text, TxtPassword.Text);
        }