示例#1
0
        private void ExecuteAddDamageReduction()
        {
            AddDamageReductionWindowViewModel addDamageReductionWindowViewModel = new AddDamageReductionWindowViewModel();

            Model.DamageReduction dr = addDamageReductionWindowViewModel.GetDamageReduction();
            if (dr != null)
            {
                DamageReductions.Add(dr);
            }
        }
示例#2
0
 private void ExecuteEditDamageReduction()
 {
     if (SelectedDamageReduction < DamageReductions.Count && SelectedDamageReduction >= 0)
     {
         AddDamageReductionWindowViewModel addDamageReductionWindowViewModel = new AddDamageReductionWindowViewModel(DamageReductions[SelectedDamageReduction]);
         Model.DamageReduction             dr = addDamageReductionWindowViewModel.GetDamageReduction();
         if (dr != null)
         {
             DamageReductions[SelectedDamageReduction] = dr;
         }
     }
 }