public ClassPaymentViewModel(ClassPaymentBussiness bussiness) { ClassFee = new ClassFeeViewModel(bussiness.ClassFee); ClassFee.ErrOccuredEvent += Enable; ClassFee.ShowInfoEvent += Enable; TeacherFee = new TeacherFeeViewModel(bussiness.TeacherFee); TeacherFee.ErrOccuredEvent += Enable; TeacherFee.ShowInfoEvent += Enable; }
public PaymentManagementBussiness(BlockClassManagement block, RegularClassManagement regular, TraineeInfo trainee, NameCallingBussiness nameCalling) { PaymentDAL = new PaymentInfo(); ClassPayment = new ClassPaymentBussiness(block, regular, trainee, PaymentDAL, nameCalling); NormalPayment = new NormalPaymentBussiness(PaymentDAL); }