private void btnBack_Click(object sender, RoutedEventArgs e)
        {
            BusinessLayer.IStudentBLL BLL = new BusinessLayer.StudentBLL((App.Current as App).GetRepository());
            var student = BLL.PreviousStudent();

            if (student != null)
            {
                RefreshUI(student);
            }
        }
        private void btnDeleteClick(object sender, RoutedEventArgs e)
        {
            var messageDialog = new Windows.UI.Popups.MessageDialog("Are you sure you want to delete this Student Record?");

            messageDialog.Commands.Add(new UICommand("Yes", (command) => {
                BusinessLayer.IStudentBLL BLL = new BusinessLayer.StudentBLL((App.Current as App).GetRepository());
                var studentToDelete           = BLL.GetStudentById(currentDisplayId);
                BLL.DeleteStudent(studentToDelete);
                var student = BLL.PreviousStudent();
                RefreshUI(student);
            }));
            messageDialog.Commands.Add(new UICommand("No", (command) => {}));
            messageDialog.DefaultCommandIndex = 1;
            messageDialog.ShowAsync();
        }
 private void btnDeleteClick(object sender, RoutedEventArgs e)
 {
     var messageDialog = new Windows.UI.Popups.MessageDialog("Are you sure you want to delete this Student Record?");
     messageDialog.Commands.Add(new UICommand("Yes", (command) => {
         BusinessLayer.IStudentBLL BLL = new BusinessLayer.StudentBLL((App.Current as App).GetRepository());
         var studentToDelete = BLL.GetStudentById(currentDisplayId);
         BLL.DeleteStudent(studentToDelete);
         var student = BLL.PreviousStudent();
         RefreshUI(student);
     }));
     messageDialog.Commands.Add(new UICommand("No", (command) => {}));
     messageDialog.DefaultCommandIndex = 1;
     messageDialog.ShowAsync();
 }
 private void btnBack_Click(object sender, RoutedEventArgs e)
 {
     BusinessLayer.IStudentBLL BLL = new BusinessLayer.StudentBLL((App.Current as App).GetRepository());
     var student = BLL.PreviousStudent();
     if (student != null) RefreshUI(student);
 }