예제 #1
0
        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();
            }
        }
예제 #2
0
        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();
            }
        }