public StudentListViewModel(string name)
 {
     this._students = new ObservableCollection <Student>();
     this.Name      = name;
     deleteCommand  = new RCommand(delete, canDelete);
     addCommand     = new RCommand(add, () => { return(true); });
 }
Esempio n. 2
0
 public AppViewModel()
 {
     this.Schule      = new Schule();
     sfd.AddExtension = true;
     sfd.Filter       = "Schule Files | *.schule";
     ofd.AddExtension = true;
     ofd.Filter       = "Schule Files | *.schule";
     this.saveCommand = new RCommand(saveBtnClick, () => { return(true); });
     this.openCommand = new RCommand(openBtnClick, () => { return(true); });
 }
Esempio n. 3
0
 public Schule()
 {
     addBtnClick = new RCommand(addStudentGroup, () => { return(true); });
     delBtnClick = new RCommand(deleteStudentGroup, canDeleteStudentGroup);
 }