Class StudentsPageViewModel
Inheritance
StudentsPageViewModel
Assembly: EduCATS.dll
Syntax
public class StudentsPageViewModel : GroupsViewModel, INotifyPropertyChanged
Constructors
StudentsPageViewModel(IPlatformServices, int, List<StatsStudentModel>, int)
Declaration
public StudentsPageViewModel(IPlatformServices services, int subjectId, List<StatsStudentModel> studentsList, int pageIndex)
Parameters
Fields
_pageIndex
Declaration
protected readonly int _pageIndex
Field Value
_service
Declaration
protected readonly IPlatformServices _service
Field Value
_studentsList
Declaration
protected readonly List<StatsStudentModel> _studentsList
Field Value
_subjectId
Declaration
protected readonly int _subjectId
Field Value
Properties
AddMarksCommand
Declaration
public Command AddMarksCommand { get; }
Property Value
IsLoading
Declaration
public bool IsLoading { get; set; }
Property Value
RefreshCommand
Declaration
public Command RefreshCommand { get; }
Property Value
SearchText
Declaration
public string SearchText { get; set; }
Property Value
SelectedItem
Declaration
public object SelectedItem { get; set; }
Property Value
Students
Declaration
public List<StudentsPageModel> Students { get; set; }
Property Value
Methods
Init()
Declaration
public virtual void Init()
getAndSetStudents()
Declaration
protected virtual Task getAndSetStudents()
Returns
getStatistics()
Declaration
protected virtual Task<List<StatsStudentModel>> getStatistics()
Returns
openAddMarksPage(GroupItemModel, int)
Declaration
protected Task openAddMarksPage(GroupItemModel groupId, int subjectId)
Parameters
Returns
setStudents(List<StatsStudentModel>)
Declaration
protected void setStudents(List<StatsStudentModel> studentsStatistics)
Parameters
update(bool)
Declaration
protected virtual Task update(bool groupsOnly = false)
Parameters
Type |
Name |
Description |
bool |
groupsOnly |
|
Returns
Implements