private void EnableAutoHaste(object sender, RoutedEventArgs e) { if (!ModulesManager.autoHaste.working) { try { ModulesManager.autoHaste.HasteSpell = AHSpell.Text; ModulesManager.autoHaste.ManaCost = int.Parse(AHMana.Text); ModulesManager.AutoHasteEnable(); } catch (Exception) { Error.Visibility = Visibility.Visible; } } }