ANHDBI.frmLogin.btnSave_Click C# (CSharp) Метод

btnSave_Click() приватный Метод

Handles the Click event of the btnSave control.
private btnSave_Click ( object sender, System e ) : void
sender object The source of the event.
e System The instance containing the event data.
Результат void
        private void btnSave_Click(object sender, System.EventArgs e)
        {
            //Test Connection
            if (TestConnection() == false)
            {
                MessageBox.Show("Connection Failed!", "Test Connection");
                return;
            }

            DialogResult = DialogResult.OK;
            Close();
        }