Class AppPages
Application's navigation helper.
Implements
Inherited Members
Namespace: EduCATS.Helpers.Forms.Pages
Assembly: EduCATS.dll
Syntax
public class AppPages : IPages
Methods
ClosePage(bool, bool)
Close page.
Declaration
public Task ClosePage(bool modal, bool animated = true)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | modal | Is page modal. |
| bool | animated | Is close animation. |
Returns
| Type | Description |
|---|---|
| Task | Task. |
OpenAddMarks(string, GroupItemModel, int, string)
Declaration
public Task OpenAddMarks(string title, GroupItemModel groupId, int subjectId, string groupName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | |
| GroupItemModel | groupId | |
| int | subjectId | |
| string | groupName |
Returns
| Type | Description |
|---|---|
| Task |
OpenAddMarksPracticeAndLabs(string, GroupItemModel, int, string)
Declaration
public Task OpenAddMarksPracticeAndLabs(string title, GroupItemModel groupId, int subject, string groupName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | |
| GroupItemModel | groupId | |
| int | subject | |
| string | groupName |
Returns
| Type | Description |
|---|---|
| Task |
OpenAddSingleMark(string, string, LabsVisitingList, TakedLabs, int)
Declaration
public Task OpenAddSingleMark(string title, string name, LabsVisitingList Marks, TakedLabs prOrLabStat, int sub)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | |
| string | name | |
| LabsVisitingList | Marks | |
| TakedLabs | prOrLabStat | |
| int | sub |
Returns
| Type | Description |
|---|---|
| Task |
OpenDetailedStatistics(string, int, int, int, string, string)
Open page with detailed statistics by page type.
Declaration
public Task OpenDetailedStatistics(string userLogin, int subjectId, int groupId, int pageIndex, string title, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | userLogin | User's login (username). |
| int | subjectId | Subject ID. |
| int | groupId | Group ID. |
| int | pageIndex | Page index (StatsPageEnum). |
| string | title | Page title. |
| string | name | Student's name. |
Returns
| Type | Description |
|---|---|
| Task | Task. |
OpenEemc(string, int)
Open Electronic educational methodological complexes page.
Declaration
public Task OpenEemc(string title, int searchId = -1)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | Title. |
| int | searchId | (optional) Search ID. |
Returns
| Type | Description |
|---|---|
| Task | Task. |
OpenFiles(string)
Open Files page.
Declaration
public Task OpenFiles(string title)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | Title. |
Returns
| Type | Description |
|---|---|
| Task | Task. |
OpenFindGroup(string)
Open group finding page.
Declaration
public Task OpenFindGroup(string title)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title |
Returns
| Type | Description |
|---|---|
| Task |
OpenForgotPassword(string)
Declaration
public Task OpenForgotPassword(string title)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title |
Returns
| Type | Description |
|---|---|
| Task |
OpenLogin()
Open login page.
Declaration
public void OpenLogin()
OpenMain()
Open main page.
Declaration
public void OpenMain()
OpenNewsDetails(string, string)
Open news details page.
Declaration
public Task OpenNewsDetails(string newsTitle, string body)
Parameters
| Type | Name | Description |
|---|---|---|
| string | newsTitle | News title. |
| string | body | News html body. |
Returns
| Type | Description |
|---|---|
| Task | Task. |
OpenParentalStats(GroupInfo, string)
Open parental control statistics
Declaration
public Task OpenParentalStats(GroupInfo group, string title)
Parameters
| Type | Name | Description |
|---|---|---|
| GroupInfo | group | Group info. |
| string | title | Title. |
Returns
| Type | Description |
|---|---|
| Task | Task. |
OpenParentalStudentsListStats(IPlatformServices, int, int, List<StatsStudentModel>, string)
Open page with students List.
Declaration
public Task OpenParentalStudentsListStats(IPlatformServices services, int pageIndex, int subjectId, List<StatsStudentModel> students, string title)
Parameters
| Type | Name | Description |
|---|---|---|
| IPlatformServices | services | |
| int | pageIndex | Index of a page to open after choosing a student. |
| int | subjectId | |
| List<StatsStudentModel> | students | |
| string | title |
Returns
| Type | Description |
|---|---|
| Task | Task. |
OpenProfileAbout(string)
Change Application's main page without animation.
Declaration
public Task OpenProfileAbout(string title)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title |
Returns
| Type | Description |
|---|---|
| Task |
OpenRecommendations(string)
Open Adaptive Learning (Recommendations) page.
Declaration
public Task OpenRecommendations(string title)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | Title. |
Returns
| Type | Description |
|---|---|
| Task | Task. |
OpenRegistration(string)
Declaration
public Task OpenRegistration(string title)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title |
Returns
| Type | Description |
|---|---|
| Task |
OpenSettings(string)
Open Settings page.
Declaration
public Task OpenSettings(string title)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | Title. |
Returns
| Type | Description |
|---|---|
| Task | Task. |
OpenSettingsAbout(string)
Open Settings About application page.
Declaration
public Task OpenSettingsAbout(string title)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | Title. |
Returns
| Type | Description |
|---|---|
| Task | Task. |
OpenSettingsFont(string)
Open Settings Font page.
Declaration
public Task OpenSettingsFont(string title)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | Title. |
Returns
| Type | Description |
|---|---|
| Task | Task. |
OpenSettingsLanguage(string)
Open Settings Language page.
Declaration
public Task OpenSettingsLanguage(string title)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | Title. |
Returns
| Type | Description |
|---|---|
| Task | Task. |
OpenSettingsServer(string)
Open Settings Server page.
Declaration
public Task OpenSettingsServer(string title)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | Title. |
Returns
| Type | Description |
|---|---|
| Task | Task. |
OpenSettingsTheme(string)
Open Settings Theme page.
Declaration
public Task OpenSettingsTheme(string title)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | Title. |
Returns
| Type | Description |
|---|---|
| Task | Task. |
OpenStudentsListStats(int, int, List<StatsStudentModel>, string)
Open page with students.
Declaration
public Task OpenStudentsListStats(int pageIndex, int subjectId, List<StatsStudentModel> students, string title)
Parameters
| Type | Name | Description |
|---|---|---|
| int | pageIndex | Index of a page to open after choosing a student. |
| int | subjectId | |
| List<StatsStudentModel> | students | |
| string | title |
Returns
| Type | Description |
|---|---|
| Task | Task. |
OpenTestPassing(int, bool)
Open test passing page.
Declaration
public Task OpenTestPassing(int testId, bool forSelfStudy)
Parameters
| Type | Name | Description |
|---|---|---|
| int | testId | Test ID. |
| bool | forSelfStudy | Is test for self-study. |
Returns
| Type | Description |
|---|---|
| Task | Task. |
OpenTestResults(int, bool, string)
Open test results.
Declaration
public Task OpenTestResults(int testId, bool fromComplexLearning = false, string timePassed = null)
Parameters
| Type | Name | Description |
|---|---|---|
| int | testId | Test ID. |
| bool | fromComplexLearning | Is opened from Complex learning page. |
| string | timePassed | Time passed. |
Returns
| Type | Description |
|---|---|
| Task | Task. |
OpenTesting(string)
Open base testing page.
Declaration
public Task OpenTesting(string title)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | Page title. |
Returns
| Type | Description |
|---|---|
| Task | Task. |