예제 #1
0
        private void OnAddExecute()
        {
            var wrapper = new ProgrammingLanguageWrapper(new FriendsShow.Model.ProgrammingLanguage());

            wrapper.PropertyChanged += Wrapper_PropertyChanged;
            _programmingLanguageRepository.Add(wrapper.Model);
            ProgrammingLanguages.Add(wrapper);
        }
예제 #2
0
        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;
        }
예제 #3
0
        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
        }
예제 #4
0
        private void OnAddExecute()
        {
            var wrapper = new ProgrammingLanguageWrapper(new ProgrammingLanguage());

            wrapper.PropertyChanged += Wrapper_PropertyChanged;
            _programmingLanguageRepository.Add(wrapper.Model);
            ProgrammingLanguages.Add(wrapper);

            wrapper.Name = ""; //validation trick
        }
예제 #5
0
        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
        }
예제 #6
0
        private void OnAddExecute()
        {
            var wrapper = new ProgrammingLanguageWrapper(new ProgrammingLanguage());

            wrapper.PropertyChanged += HandleOnWrapperPropertyChanged;
            _programmingLanguageRepository.Add(wrapper.Model);
            ProgrammingLanguages.Add(wrapper);

            //Trigger validation
            wrapper.Name = "";
        }
예제 #7
0
 public void CreateProgrammingLanguage(ProgrammingLanguage programmingLanguage)
 {
     programmingLanguageRepository.Add(programmingLanguage);
 }