Esempio n. 1
0
        private bool IsDataValid_Local()
        {
            bool isValid = true;

            if (string.IsNullOrEmpty(LocalServer.Text) || string.IsNullOrEmpty(LocalDbName.Text) || string.IsNullOrEmpty(LocalUsername.Text) || string.IsNullOrEmpty(LocalPassword.Text))
            {
                MessageBox.Show("Please fill out all fields.", "Extraction Error", MessageBoxButtons.OK);
                isValid = false;
            }
            else if (LocalServer.Text != "localhost")
            {
                if (isSubServer)
                {
                    MessageBox.Show("Please enter another ip address.", "Data Error", MessageBoxButtons.OK);
                    LocalServer.Focus();
                    isValid = false;
                }
            }
            return(isValid);
        }