private void EnableAntyParalyse(object sender, RoutedEventArgs e) { try { ModulesManager.antyParalyse.AntyParalyseSpell = APSpell.Text; ModulesManager.antyParalyse.ManaCost = int.Parse(APMana.Text); ModulesManager.AntyParalyseEnable(); } catch (Exception) { Error.Visibility = Visibility.Visible; } }