private void OKBtn_Click(object sender, EventArgs e) { String strURL = this.URLText.Text; String strUserName = this.UserNameText.Text; String strPassword = this.PasswordText.Text; if (strURL.Equals("") || strUserName.Equals("") || strPassword.Equals("")) { return; } // login cloud device m_oNetDemo.loginCloudDevice(strURL, strUserName, strPassword); this.Close(); }