Exemplo n.º 1
0
        private void ExecuteAddEnergyResistance()
        {
            AddEnergyResistanceWindowViewModel addEnergyResistanceWindowViewModel = new AddEnergyResistanceWindowViewModel();

            Model.EnergyResistance dr = addEnergyResistanceWindowViewModel.GetEnergyResistance();
            if (dr != null)
            {
                EnergyResistances.Add(dr);
            }
        }
Exemplo n.º 2
0
 private void ExecuteEditEnergyResistance()
 {
     if (SelectedEnergyResistance < EnergyResistances.Count && SelectedEnergyResistance >= 0)
     {
         AddEnergyResistanceWindowViewModel addEnergyResistanceWindowViewModel = new AddEnergyResistanceWindowViewModel(EnergyResistances[SelectedEnergyResistance]);
         Model.EnergyResistance             dr = addEnergyResistanceWindowViewModel.GetEnergyResistance();
         if (dr != null)
         {
             EnergyResistances[SelectedEnergyResistance] = dr;
         }
     }
 }