private void OnAddExecute() { var wrapper = new ProgrammingLanguageWrapper(new FriendsShow.Model.ProgrammingLanguage()); wrapper.PropertyChanged += Wrapper_PropertyChanged; _programmingLanguageRepository.Add(wrapper.Model); ProgrammingLanguages.Add(wrapper); }
private void OnAddExecute() { var wrapper = new ProgrammingLanguageWrapper(new Model.ProgrammingLanguage()); wrapper.PropertyChanged += Wrapper_PropertyChanged; _programmingLanguageRepository.Add(wrapper.Model); ProgrammingLanguages.Add(wrapper); wrapper.Name = string.Empty; }
void OnAddExecute() { var wrapper = new ProgrammingLanguageWrapper(new Domain.ProgrammingLanguage()); wrapper.PropertyChanged += Wrapper_PropertyChanged; _programmingLanguageRepository.Add(wrapper.Model); ProgrammingLanguages.Add(wrapper); wrapper.Name = ""; // Trigger the validation }
private void OnAddExecute() { var wrapper = new ProgrammingLanguageWrapper(new ProgrammingLanguage()); wrapper.PropertyChanged += Wrapper_PropertyChanged; _programmingLanguageRepository.Add(wrapper.Model); ProgrammingLanguages.Add(wrapper); wrapper.Name = ""; //validation trick }
private void OnAddCommand() { var wrapper = new ProgrammingLanguageWrapper(new ProgrammingLanguage()); //utwórz nowy element, wrapper+model wrapper.PropertyChanged += Wrapper_PropertyChanged; //podłącz eventy _repository.Add(wrapper.Model); // dodaj nowy element do repo ProgrammingLanguages.Add(wrapper); //dodaj do listy wrapper.Name = ""; // tacznij triger walidacji }
private void OnAddExecute() { var wrapper = new ProgrammingLanguageWrapper(new ProgrammingLanguage()); wrapper.PropertyChanged += HandleOnWrapperPropertyChanged; _programmingLanguageRepository.Add(wrapper.Model); ProgrammingLanguages.Add(wrapper); //Trigger validation wrapper.Name = ""; }
public void CreateProgrammingLanguage(ProgrammingLanguage programmingLanguage) { programmingLanguageRepository.Add(programmingLanguage); }