internal TrailblazerApprenticeshipFinancialRecord(TrailblazerApprenticeshipFinancialRecord MigrationLearnerEmploymentStatus, XmlNode Node, XmlNamespaceManager NSMgr)
        {
            this.Node  = Node;
            this.NSMgr = NSMgr;

            this.TBFinType   = MigrationLearnerEmploymentStatus.TBFinType;
            this.TBFinCode   = MigrationLearnerEmploymentStatus.TBFinCode;
            this.TBFinDate   = MigrationLearnerEmploymentStatus.TBFinDate;
            this.TBFinAmount = MigrationLearnerEmploymentStatus.TBFinAmount;
        }
Beispiel #2
0
        private void Remove_Click(object sender, RoutedEventArgs e)
        {
            if (TrailblazerItemsCV.CurrentItem != null)
            {
                ILR.TrailblazerApprenticeshipFinancialRecord les2Remove = TrailblazerItemsCV.CurrentItem as ILR.TrailblazerApprenticeshipFinancialRecord;

                if (les2Remove != null)
                {
                    _learningDelivery.Delete(les2Remove);
                    _TrailBlazerList.Remove(les2Remove);

                    if (!TrailblazerItemsCV.MoveCurrentToPrevious())
                    {
                        TrailblazerItemsCV.MoveCurrentToFirst();
                        TrailblazerItemsCV.Refresh();
                        OnPropertyChanged("TrailblazerItemsCV");
                    }
                    if ((TrailblazerItemsCV.CurrentItem != null) && (TrailblazerItemsCV.CurrentItem != les2Remove))
                    {
                        ILR.TrailblazerApprenticeshipFinancialRecord f = TrailblazerItemsCV.CurrentItem as ILR.TrailblazerApprenticeshipFinancialRecord;
                        f.IsSelected = true;
                    }
                    else
                    {
                        TrailblazerItemsCV.MoveCurrentToNext();
                        if (TrailblazerItemsCV.CurrentItem != null)
                        {
                            ILR.TrailblazerApprenticeshipFinancialRecord f = TrailblazerItemsCV.CurrentItem as ILR.TrailblazerApprenticeshipFinancialRecord;
                            f.IsSelected = true;
                        }
                    }
                }
                TrailblazerItemsCV.Refresh();
            }
            OnPropertyChanged("TrailblazerItemsCV");
            ShouldShowListView();
        }