Ejemplo n.º 1
0
        private void StudentOverviewButton_Click(object sender, EventArgs e)
        {
            StudentOverview studentoverview = new StudentOverview();

            this.Hide();
            studentoverview.Show();
        }
        public StudentOverviewDetailViewModel(StudentOverviewTableViewModel viewModel, IStudentOverview studentOverviewStore, IPageService pageService)
        {
            if (viewModel == null)
            {
                throw new ArgumentNullException(nameof(viewModel));
            }

            _pageService          = pageService;
            _studentOverviewStore = studentOverviewStore;

            SaveCommand = new Command(async() => await Save());

            StudentOverview = new StudentOverview
            {
                id         = viewModel.Id,
                studentID  = viewModel.StudentID,
                semester   = viewModel.Semester,
                attendance = viewModel.Attendance,
                grade      = viewModel.Grade,
                moduleID   = viewModel.ModuleID,
                year       = viewModel.Year
            };
        }
Ejemplo n.º 3
0
 public async Task UpdateStudentOverview(StudentOverview studentOverview)
 {
     await _connection.UpdateAsync(studentOverview);
 }
Ejemplo n.º 4
0
 public async Task DeleteStudentOverview(StudentOverview studentOverview)
 {
     await _connection.DeleteAsync(studentOverview);
 }
Ejemplo n.º 5
0
 public async Task AddStudentOverview(StudentOverview studentOverview)
 {
     await _connection.InsertAsync(studentOverview);
 }