private void AddNaturalAttackButton_Click(object sender, System.Windows.RoutedEventArgs e) { NaturalAttackWindow window = new NaturalAttackWindow(); window.Monster = this._Monster; window.Owner = this; if (window.ShowDialog() == true) { attacks.NaturalAttacks.Add(window.WeaponItem); naturalView.Refresh(); UpdateMeleeString(); } }
private void EditNaturalAttackButton_Click(object sender, System.Windows.RoutedEventArgs e) { NaturalAttackWindow window = new NaturalAttackWindow(); window.WeaponItem = (WeaponItem)((Button)sender).DataContext; window.Monster = this._Monster; window.Owner = this; if (window.ShowDialog() == true) { naturalView.Refresh(); UpdateMeleeString(); } }