Esempio n. 1
0
        public ViewDocentViewModel(ViewDocentModel model) : base(model)
        {
            _docenten = new ObservableCollection <DocentViewModel>();

            foreach (var item in model.ViewDocenten)
            {
                var docViewModel = new DocentViewModel(item);
                _docenten.Add(docViewModel);


                this.RemoveDocentCommand = new RelayCommand(() => DeleteDocent());
            }
            //ViewCommand = new RelayCommand(() => View());
        }
Esempio n. 2
0
        //public string Voornaam
        //{
        //    get => Model.ViewDocenten;
        //    set
        //    {
        //        SetProperty(Model.Voornaam, value, () => { Model.Voornaam = value; RaisePropertyChanged(nameof(FullName)); });

        //    }
        //}


        private void MemberViewModel_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
        {
            _selectedDocent = sender as DocentViewModel;
        }