Exemple #1
0
 public StatisticManagementBussiness(PaymentInfo paymentDal, TraineeManagementBussiness trainees, BlockClassManagement blocks, RegularClassManagement regulars,
                                     NameCallingBussiness calling, TraineeInfo trainee, OverdueManagementBussiness overdue)
 {
     GeneralDal = new GeneralInfo();
     Finance    = new FinanceStatisticBussiness(paymentDal, trainees, blocks, regulars, GeneralDal);
     Teacher    = new TeachingStatisticBussiness(calling, regulars, blocks);
     Trainee    = new TraineeStatisticBussiness(trainees, regulars, new RegularTraineeBussiness(trainee), overdue, calling);
     General    = new GeneralAndExportBussiness(trainees.Dal, GeneralDal, blocks, regulars, trainees);
 }
Exemple #2
0
        public TraineeViewModel(TraineeStatisticBussiness bussiness) : base()
        {
            _bussiness                = bussiness;
            ItemCollection            = new ObservableCollection <PresenceItemViewModel>();
            Presence                  = new PresenceStatisticViewModel(bussiness.Presence);
            Sum                       = new PresenceSumViewModel();
            PieColletcion             = new SeriesCollection();
            Presence.ClearChartEvent += () =>
            {
                Sum.Clear();
            };

            Presence.ErrOccuredEvent += (msg, level) => EnableErrMsg(msg);

            _bussiness.Presence.PresenceInfoChangedEvent += OnPresenceInfoChanged;
        }