private void Exit_Click(object sender, RoutedEventArgs e) { PopUpHelper.SaveAndExit(CharacterExists(characterName.Text), "character"); }
private void MenuItem_Click(object sender, RoutedEventArgs e) { PopUpHelper.SaveAndExit(SpellExists(spellName.Text), "spell"); }
/// <summary> /// Exit is clicked /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Exit_Click(object sender, RoutedEventArgs e) { PopUpHelper.SaveAndExit(ItemExists(itemName.Text), "item"); }