Exemplo n.º 1
0
        private void AddCharacter(object sender, RoutedEventArgs e)
        {
            string         name      = CharacterToAddNameTextBox.Text;
            CharacterSheet character = new CharacterSheet(name);

            character.RefreshStats();
            CharacterSheets.Add(character);
        }
Exemplo n.º 2
0
 public MainPage()
 {
     this.InitializeComponent();
     this.SimSettings       = new SimSettings();
     this.SelectedCharacter = new SelectedCharacter();
     this.CharacterSheets   = new ObservableCollection <CharacterSheet>();
     this.SkillList         = new Skills.SkillList();
     this.SkilledStats      = new ActionStatsSelectedSkill();
     CharacterSheets.Add(new CharacterSheet("Fulkan"));
     CharacterSheets[0].NameOfCurrentSkill = "Un-skilled";
     CharactersListView.SelectedIndex      = 0;
     SkillSelect_ListBox.SelectedIndex     = 0;
 }