private void EnableSio(object sender, RoutedEventArgs e) { try { ModulesManager.sio.playerName = PlayerName.Text; ModulesManager.sio.healthPercentToHeal = int.Parse(PlayerHpPercent.Text); ModulesManager.SioEnable(); } catch (Exception) { Error.Visibility = Visibility.Visible; } }