void textBox_LostFocused(IFocusable sender, FocusEventArgs args) { string text = textBox.Text; IsValid = roomInfo.PasswordHash == WebManager.GetPasswordHash(text); textBox.Parent.RemoveChild(textBox); if (Processed != null) { Processed.Invoke(this, EventArgs.Empty); } if (!IsValid) { this.InsertChild(new TextureString(device, Utility.Language["NotCorrectPassword"], 20, true, PPDColors.White) { Position = new Vector2(400, 250) }, 0); } }