public void SendOk() { if (!string.IsNullOrEmpty(UserPassword)) { TryClose(true); } else { TryClose(false); } }