/// <summary> /// Ajoute un nouveau jedi à la liste de jedis. /// </summary> private void New() { Jedi j = new Jedi(_newNextId--, "<New>", false, null, ""); this.SelectedItem = new JediViewModel(j); Jedis.Add(this.SelectedItem); }
private void Add() { JediTournamentEntities.Jedi j = new JediTournamentEntities.Jedi(); this.SelectedItem = new JediViewModel(j); Jedis.Add(j); }