/// TODO On property changed? private void UpdateLists() { Nodes.Clear(); List <Node> nodes = testsLogic.GetListForTree(); foreach (Node node in nodes) { Nodes.Add(node); } TestsNames.Clear(); List <string> testsNames = testsLogic.ShowTestsNames(); foreach (string name in testsNames) { TestsNames.Add(name); } }
public int RollTest(TestsNames pmName) { return DiceRoller.RollDice (20, 1) + mAbilities [mTestAbilities [pmName]].Modifier; }