Example #1
0
 public ListSubjectSummaryViewModel(ITrainingModel modelTrain)
 {
     _modelTrain = modelTrain;
     _modelTrain.GetListAuthenticationFormComplete += new EventHandler <ComplexResultsArgs <Authentication> >(_model_GetListAuthenticationFormComplete);
     _modelTrain.GetListSubjectComplete            += new EventHandler <EntityResultsArgs <Vlu_MonHoc> >(_modelTrain_GetListSubjectComplete);
     _modelTrain.DeleteSubjectComplete             += new EventHandler <SubmitOperationEventArgs>(_modelTrain_DeleteSubjectComplete);
 }
Example #2
0
 public ListTrainingViewModel(ITrainingModel modelTrain)
 {
     _modelTrain = modelTrain;
     _modelTrain.GetListAuthenticationFormComplete += new EventHandler <ComplexResultsArgs <Authentication> >(_model_GetListAuthenticationFormComplete);
     _modelTrain.GetListTrainingComplete           += new EventHandler <ComplexResultsArgs <ImportTraining> >(_modelTrain_GetListTrainingComplete);
     _modelTrain.DeleteTrainingComplete            += new EventHandler <InvokeOperationEventArgs>(_modelTrain_DeleteTrainingComplete);
 }
 public ListDepartmentViewModel(ITrainingModel modelTrain)
 {
     _modelTrain = modelTrain;
     _modelTrain.GetListAuthenticationFormComplete += new EventHandler <ComplexResultsArgs <Authentication> >(_model_GetListAuthenticationFormComplete);
     _modelTrain.GetListDepartmentComplete         += new EventHandler <EntityResultsArgs <Vlu_Khoa> >(_modelTrain_GetListDepartmentComplete);
     _modelTrain.DeleteDepartmentComplete          += new EventHandler <SubmitOperationEventArgs>(_modelTrain_DeleteDepartmentComplete);
 }
 public NullParameterSelection(Parameter parameter, ITrainingModel training)
 {
     Guard.NotNull(() => parameter, parameter);
     Guard.NotNull(() => training, training);
     this.parameter = parameter;
     Training       = training;
 }
Example #5
0
 public EditRoomViewModel(ITrainingModel modelTrain)
 {
     _modelTrain = modelTrain;
     _modelTrain.GetListAuthenticationFormComplete += new EventHandler <ComplexResultsArgs <Authentication> >(_model_GetListAuthenticationFormComplete);
     _modelTrain.GetRoomComplete      += new EventHandler <EntityResultsArgs <Vlu_PhongHoc> >(_modelTrain_GetRoomComplete);
     _modelTrain.GetRoomByKeyComplete += new EventHandler <EntityResultsArgs <Vlu_PhongHoc> >(_modelTrain_GetRoomByKeyComplete);
     _modelTrain.SaveRoomComplete     += new EventHandler <SubmitOperationEventArgs>(_modelTrain_SaveRoomComplete);
 }
 public UploadClassViewModel(ITrainingModel modelTrain)
 {
     _modelTrain = modelTrain;
     _modelTrain.GetListAuthenticationFormComplete += new EventHandler <ComplexResultsArgs <Authentication> >(_model_GetListAuthenticationFormComplete);
     //_modelTrain.ImportSubjectComplete += new EventHandler<SubmitOperationEventArgs>(_modelTrain_ImportSubjectComplete);
     _modelTrain.GetListDepartmentComplete += new EventHandler <EntityResultsArgs <Vlu_Khoa> >(_modelTrain_GetListDepartmentComplete);
     _modelTrain.ImportClassComplete       += new EventHandler <SubmitOperationEventArgs>(_modelTrain_ImportClassComplete);
 }
Example #7
0
 public MainPageViewModel(IAuthenticationModel modelAuth, ITrainingModel modelTrain)
 {
     _modelAuth  = modelAuth;
     _modelTrain = modelTrain;
     _modelAuth.LoadUserComplete += new EventHandler <LoadUserOperationEventArgs>(_modelAuth_LoadUserComplete);
     _modelAuth.GetListAuthenticationMenuComplete += new EventHandler <ComplexResultsArgs <Authentication> >(_modelAuth_GetListAuthenticationMenuComplete);
     _modelAuth.LogoutComplete += new EventHandler <LogoutOperationEventArgs>(_modelAuth_LogoutComplete);
 }
Example #8
0
 public EditTrainingViewModel(ITrainingModel modelTrain)
 {
     _modelTrain = modelTrain;
     _modelTrain.GetListDepartmentComplete += new EventHandler <EntityResultsArgs <Vlu_Khoa> >(_modelTrain_GetListDepartmentComplete);
     _modelTrain.GetSubjectComplete        += new EventHandler <EntityResultsArgs <Vlu_MonHoc> >(_modelTrain_GetSubjectComplete);
     _modelTrain.GetClassComplete          += new EventHandler <EntityResultsArgs <Vlu_LopHoc> >(_modelTrain_GetClassComplete);
     _modelTrain.SaveTrainingComplete      += new EventHandler <SubmitOperationEventArgs>(_modelTrain_SaveTrainingComplete);
 }
 public UploadTrainingViewModel(ITrainingModel modelTrain)
 {
     _modelTrain = modelTrain;
     _modelTrain.GetListAuthenticationFormComplete += new EventHandler <ComplexResultsArgs <Authentication> >(_model_GetListAuthenticationFormComplete);
     _modelTrain.GetListDepartmentComplete         += new EventHandler <EntityResultsArgs <Vlu_Khoa> >(_modelTrain_GetListDepartmentComplete);
     _modelTrain.GetListSubjectComplete            += new EventHandler <EntityResultsArgs <Vlu_MonHoc> >(_modelTrain_GetListSubjectComplete);
     _modelTrain.GetListClassComplete   += new EventHandler <EntityResultsArgs <Vlu_LopHoc> >(_modelTrain_GetListClassComplete);
     _modelTrain.ImportTrainingComplete += new EventHandler <InvokeOperationEventArgs>(_modelTrain_ImportTrainingComplete);
 }
 public GridParameterSelection(TaskFactory taskFactory, ITrainingModel training, GridSearchParameters parameters)
 {
     Guard.NotNull(() => parameters, parameters);
     Guard.NotNull(() => taskFactory, taskFactory);
     Guard.NotNull(() => training, training);
     SearchParameters = parameters;
     Training         = training;
     this.taskFactory = taskFactory;
 }
Example #11
0
 public EditClassViewModel(ITrainingModel modelTrain)
 {
     _modelTrain = modelTrain;
     _modelTrain.GetListAuthenticationFormComplete += new EventHandler <ComplexResultsArgs <Authentication> >(_model_GetListAuthenticationFormComplete);
     _modelTrain.GetClassComplete          += new EventHandler <EntityResultsArgs <Vlu_LopHoc> >(_modelTrain_GetClassComplete);
     _modelTrain.GetClassParentComplete    += new EventHandler <EntityResultsArgs <Vlu_LopHoc> >(_modelTrain_GetClassParentComplete);
     _modelTrain.GetClassByKeyComplete     += new EventHandler <EntityResultsArgs <Vlu_LopHoc> >(_modelTrain_GetClassByKeyComplete);
     _modelTrain.SaveClassComplete         += new EventHandler <SubmitOperationEventArgs>(_modelTrain_SaveClassComplete);
     _modelTrain.GetListDepartmentComplete += new EventHandler <EntityResultsArgs <Vlu_Khoa> >(_modelTrain_GetListDepartmentComplete);
 }
Example #12
0
 public override void Cleanup()
 {
     if (_modelTrain != null)
     {
         _modelTrain.GetListDepartmentComplete -= new EventHandler <EntityResultsArgs <Vlu_Khoa> >(_modelTrain_GetListDepartmentComplete);
         _modelTrain = null;
     }
     _listData     = null;
     _selectedItem = null;
     if (DialogSended != null)
     {
         DialogSended = null;
     }
     base.Cleanup();
 }
Example #13
0
 public override void Cleanup()
 {
     if (_modelTrain != null)
     {
         _modelTrain.GetListDepartmentComplete -= new EventHandler <EntityResultsArgs <Vlu_Khoa> >(_modelTrain_GetListDepartmentComplete);
         _modelTrain.GetSubjectComplete        -= new EventHandler <EntityResultsArgs <Vlu_MonHoc> >(_modelTrain_GetSubjectComplete);
         _modelTrain.GetClassComplete          -= new EventHandler <EntityResultsArgs <Vlu_LopHoc> >(_modelTrain_GetClassComplete);
         _modelTrain.SaveTrainingComplete      -= new EventHandler <SubmitOperationEventArgs>(_modelTrain_SaveTrainingComplete);
         _modelTrain = null;
     }
     ItemEdit = null;
     if (_dialogSended != null)
     {
         _dialogSended = null;
     }
     base.Cleanup();
 }
 public override void Cleanup()
 {
     if (_modelTrain != null)
     {
         _modelTrain.GetListAuthenticationFormComplete -= new EventHandler <ComplexResultsArgs <Authentication> >(_model_GetListAuthenticationFormComplete);
         _modelTrain.GetListDepartmentComplete         -= new EventHandler <EntityResultsArgs <Vlu_Khoa> >(_modelTrain_GetListDepartmentComplete);
         _modelTrain.DeleteDepartmentComplete          -= new EventHandler <SubmitOperationEventArgs>(_modelTrain_DeleteDepartmentComplete);
         _modelTrain = null;
     }
     _listData     = null;
     _selectedItem = null;
     if (DialogSended != null)
     {
         DialogSended = null;
     }
     base.Cleanup();
 }
 public override void Cleanup()
 {
     if (_modelTrain != null)
     {
         _modelTrain.GetListAuthenticationFormComplete -= new EventHandler <ComplexResultsArgs <Authentication> >(_model_GetListAuthenticationFormComplete);
         _modelTrain.ImportSubjectComplete             -= new EventHandler <SubmitOperationEventArgs>(_modelTrain_ImportSubjectComplete);
         _modelTrain = null;
     }
     _listData   = null;
     _listMonHoc = null;
     _listType   = null;
     if (_dialogSended != null)
     {
         _dialogSended = null;
     }
     base.Cleanup();
 }
Example #16
0
 public override void Cleanup()
 {
     if (_modelTrain != null)
     {
         _modelTrain.GetListAuthenticationFormComplete -= new EventHandler <ComplexResultsArgs <Authentication> >(_model_GetListAuthenticationFormComplete);
         _modelTrain.GetSubjectComplete      -= new EventHandler <EntityResultsArgs <Vlu_MonHoc> >(_modelTrain_GetSubjectComplete);
         _modelTrain.GetSubjectByKeyComplete -= new EventHandler <EntityResultsArgs <Vlu_MonHoc> >(_modelTrain_GetSubjectByKeyComplete);
         _modelTrain.SaveSubjectComplete     -= new EventHandler <SubmitOperationEventArgs>(_modelTrain_SaveSubjectComplete);
         _modelTrain = null;
     }
     ItemEdit = null;
     if (_dialogSended != null)
     {
         _dialogSended = null;
     }
     base.Cleanup();
 }
Example #17
0
 public override void Cleanup()
 {
     if (_modelTrain != null)
     {
         _modelTrain.GetListAuthenticationFormComplete -= new EventHandler <ComplexResultsArgs <Authentication> >(_model_GetListAuthenticationFormComplete);
         _modelTrain.GetListTrainingComplete           -= new EventHandler <ComplexResultsArgs <ImportTraining> >(_modelTrain_GetListTrainingComplete);
         _modelTrain.DeleteTrainingComplete            -= new EventHandler <InvokeOperationEventArgs>(_modelTrain_DeleteTrainingComplete);
         _modelTrain = null;
     }
     _listType     = null;
     _listData     = null;
     _selectedItem = null;
     if (DialogSended != null)
     {
         DialogSended = null;
     }
     base.Cleanup();
 }
Example #18
0
 public override void Cleanup()
 {
     if (_modelTrain != null)
     {
         _modelTrain.GetListAuthenticationFormComplete -= new EventHandler <ComplexResultsArgs <Authentication> >(_model_GetListAuthenticationFormComplete);
         _modelTrain.GetClassComplete          -= new EventHandler <EntityResultsArgs <Vlu_LopHoc> >(_modelTrain_GetClassComplete);
         _modelTrain.GetClassParentComplete    -= new EventHandler <EntityResultsArgs <Vlu_LopHoc> >(_modelTrain_GetClassParentComplete);
         _modelTrain.GetClassByKeyComplete     -= new EventHandler <EntityResultsArgs <Vlu_LopHoc> >(_modelTrain_GetClassByKeyComplete);
         _modelTrain.SaveClassComplete         -= new EventHandler <SubmitOperationEventArgs>(_modelTrain_SaveClassComplete);
         _modelTrain.GetListDepartmentComplete -= new EventHandler <EntityResultsArgs <Vlu_Khoa> >(_modelTrain_GetListDepartmentComplete);
         _modelTrain = null;
     }
     ItemEdit  = null;
     _listKhoa = null;
     if (_dialogSended != null)
     {
         _dialogSended = null;
     }
     base.Cleanup();
 }
 public override void Cleanup()
 {
     if (_modelTrain != null)
     {
         _modelTrain.GetListAuthenticationFormComplete -= new EventHandler <ComplexResultsArgs <Authentication> >(_model_GetListAuthenticationFormComplete);
         _modelTrain.GetListDepartmentComplete         -= new EventHandler <EntityResultsArgs <Vlu_Khoa> >(_modelTrain_GetListDepartmentComplete);
         _modelTrain.GetListSubjectComplete            -= new EventHandler <EntityResultsArgs <Vlu_MonHoc> >(_modelTrain_GetListSubjectComplete);
         _modelTrain.GetListClassComplete   -= new EventHandler <EntityResultsArgs <Vlu_LopHoc> >(_modelTrain_GetListClassComplete);
         _modelTrain.ImportTrainingComplete -= new EventHandler <InvokeOperationEventArgs>(_modelTrain_ImportTrainingComplete);
         _modelTrain = null;
     }
     _listTraining = null;
     _listData     = null;
     _listKhoa     = null;
     _listLop      = null;
     _listMonHoc   = null;
     if (_dialogSended != null)
     {
         _dialogSended = null;
     }
     base.Cleanup();
 }
 public override void Cleanup()
 {
     if (_modelTrain != null)
     {
         _modelTrain.GetListDepartmentComplete -= new EventHandler<EntityResultsArgs<Vlu_Khoa>>(_modelTrain_GetListDepartmentComplete);
         _modelTrain.GetSubjectComplete -= new EventHandler<EntityResultsArgs<Vlu_MonHoc>>(_modelTrain_GetSubjectComplete);
         _modelTrain.GetClassComplete -= new EventHandler<EntityResultsArgs<Vlu_LopHoc>>(_modelTrain_GetClassComplete);
         _modelTrain.SaveTrainingComplete -= new EventHandler<SubmitOperationEventArgs>(_modelTrain_SaveTrainingComplete);
         _modelTrain = null;
     }
     ItemEdit = null;
     if (_dialogSended != null)
         _dialogSended = null;
     base.Cleanup();
 }
 public EditTrainingViewModel(ITrainingModel modelTrain)
 {
     _modelTrain = modelTrain;
     _modelTrain.GetListDepartmentComplete += new EventHandler<EntityResultsArgs<Vlu_Khoa>>(_modelTrain_GetListDepartmentComplete);
     _modelTrain.GetSubjectComplete += new EventHandler<EntityResultsArgs<Vlu_MonHoc>>(_modelTrain_GetSubjectComplete);
     _modelTrain.GetClassComplete += new EventHandler<EntityResultsArgs<Vlu_LopHoc>>(_modelTrain_GetClassComplete);
     _modelTrain.SaveTrainingComplete += new EventHandler<SubmitOperationEventArgs>(_modelTrain_SaveTrainingComplete);
 }
Example #22
0
 public MainPageViewModel(IAuthenticationModel modelAuth, ITrainingModel modelTrain)
 {
     _modelAuth = modelAuth;
     _modelTrain = modelTrain;
     _modelAuth.LoadUserComplete += new EventHandler<LoadUserOperationEventArgs>(_modelAuth_LoadUserComplete);
     _modelAuth.GetListAuthenticationMenuComplete += new EventHandler<ComplexResultsArgs<Authentication>>(_modelAuth_GetListAuthenticationMenuComplete);
     _modelAuth.LogoutComplete += new EventHandler<LogoutOperationEventArgs>(_modelAuth_LogoutComplete);
 }
 public UploadTrainingViewModel(ITrainingModel modelTrain)
 {
     _modelTrain = modelTrain;
     _modelTrain.GetListAuthenticationFormComplete += new EventHandler<ComplexResultsArgs<Authentication>>(_model_GetListAuthenticationFormComplete);
     _modelTrain.GetListDepartmentComplete += new EventHandler<EntityResultsArgs<Vlu_Khoa>>(_modelTrain_GetListDepartmentComplete);
     _modelTrain.GetListSubjectComplete += new EventHandler<EntityResultsArgs<Vlu_MonHoc>>(_modelTrain_GetListSubjectComplete);
     _modelTrain.GetListClassComplete += new EventHandler<EntityResultsArgs<Vlu_LopHoc>>(_modelTrain_GetListClassComplete);
     _modelTrain.ImportTrainingComplete += new EventHandler<InvokeOperationEventArgs>(_modelTrain_ImportTrainingComplete);
 }
Example #24
0
 /// <summary>
 /// Constructor for creating reference for Training repository
 /// </summary>
 /// <value>Interface TrainingModel</value>
 public TrainingController(ITrainingModel service)
 {
     _service = service;
 }
 public ListTrainingViewModel(ITrainingModel modelTrain)
 {
     _modelTrain = modelTrain;
     _modelTrain.GetListAuthenticationFormComplete += new EventHandler<ComplexResultsArgs<Authentication>>(_model_GetListAuthenticationFormComplete);
     _modelTrain.GetListTrainingComplete += new EventHandler<ComplexResultsArgs<ImportTraining>>(_modelTrain_GetListTrainingComplete);
     _modelTrain.DeleteTrainingComplete += new EventHandler<InvokeOperationEventArgs>(_modelTrain_DeleteTrainingComplete);
 }
Example #26
0
 public EditChooseSubjectViewModel(ITrainingModel modelTrain)
 {
     _modelTrain = modelTrain;
     _modelTrain.GetListSubjectComplete += new EventHandler <EntityResultsArgs <Vlu_MonHoc> >(_modelTrain_GetListSubjectComplete);
 }
Example #27
0
 public EditChooseDepartmentViewModel(ITrainingModel modelTrain)
 {
     _modelTrain = modelTrain;
     _modelTrain.GetListDepartmentComplete += new EventHandler <EntityResultsArgs <Vlu_Khoa> >(_modelTrain_GetListDepartmentComplete);
 }
Example #28
0
 public TrainingService(ITrainingModel repository)
 {
     _repository = repository;
 }
 public EditSubjectSummaryViewModel(ITrainingModel modelTrain)
 {
     _modelTrain = modelTrain;
     _modelTrain.GetListAuthenticationFormComplete += new EventHandler<ComplexResultsArgs<Authentication>>(_model_GetListAuthenticationFormComplete);
     _modelTrain.GetSubjectComplete += new EventHandler<EntityResultsArgs<Vlu_MonHoc>>(_modelTrain_GetSubjectComplete);
     _modelTrain.GetSubjectByKeyComplete += new EventHandler<EntityResultsArgs<Vlu_MonHoc>>(_modelTrain_GetSubjectByKeyComplete);
     _modelTrain.SaveSubjectComplete += new EventHandler<SubmitOperationEventArgs>(_modelTrain_SaveSubjectComplete);
 }
 public ListTrainingViewModel(ITrainingModel modelTrain)
 {
 }
Example #31
0
 public EditRoomViewModel(ITrainingModel modelTrain)
 {
     _modelTrain = modelTrain;
     _modelTrain.GetListAuthenticationFormComplete += new EventHandler<ComplexResultsArgs<Authentication>>(_model_GetListAuthenticationFormComplete);
     _modelTrain.GetRoomComplete += new EventHandler<EntityResultsArgs<Vlu_PhongHoc>>(_modelTrain_GetRoomComplete);
     _modelTrain.GetRoomByKeyComplete += new EventHandler<EntityResultsArgs<Vlu_PhongHoc>>(_modelTrain_GetRoomByKeyComplete);
     _modelTrain.SaveRoomComplete += new EventHandler<SubmitOperationEventArgs>(_modelTrain_SaveRoomComplete);
 }
Example #32
0
 public ListClassViewModel(ITrainingModel modelTrain)
 {
     _modelTrain = modelTrain;
     _modelTrain.GetListAuthenticationFormComplete += new EventHandler<ComplexResultsArgs<Authentication>>(_model_GetListAuthenticationFormComplete);
     _modelTrain.GetListClassComplete += new EventHandler<EntityResultsArgs<Vlu_LopHoc>>(_modelTrain_GetListClassComplete);
     _modelTrain.DeleteClassComplete += new EventHandler<SubmitOperationEventArgs>(_modelTrain_DeleteClassComplete);
 }
Example #33
0
 public MainPageViewModel(IAuthenticationModel modelAuth, ITrainingModel modelTrain, ISettingModel modelSetting)
 {
     _modelAuth = modelAuth;
     _modelTrain = modelTrain;
     _modelSetting = modelSetting;
 }
 public EditChooseDepartmentViewModel(ITrainingModel modelTrain)
 {
     _modelTrain = modelTrain;
     _modelTrain.GetListDepartmentComplete += new EventHandler<EntityResultsArgs<Vlu_Khoa>>(_modelTrain_GetListDepartmentComplete);
 }
 public UploadClassViewModel(ITrainingModel modelTrain)
 {
     _modelTrain = modelTrain;
     _modelTrain.GetListAuthenticationFormComplete += new EventHandler<ComplexResultsArgs<Authentication>>(_model_GetListAuthenticationFormComplete);
     //_modelTrain.ImportSubjectComplete += new EventHandler<SubmitOperationEventArgs>(_modelTrain_ImportSubjectComplete);
     _modelTrain.GetListDepartmentComplete += new EventHandler<EntityResultsArgs<Vlu_Khoa>>(_modelTrain_GetListDepartmentComplete);
     _modelTrain.ImportClassComplete += new EventHandler<SubmitOperationEventArgs>(_modelTrain_ImportClassComplete);
 }
 public UploadSubjectViewModel(ITrainingModel modelTrain)
 {
     _modelTrain = modelTrain;
     _modelTrain.GetListAuthenticationFormComplete += new EventHandler <ComplexResultsArgs <Authentication> >(_model_GetListAuthenticationFormComplete);
     _modelTrain.ImportSubjectComplete             += new EventHandler <SubmitOperationEventArgs>(_modelTrain_ImportSubjectComplete);
 }
 public UploadSubjectViewModel(ITrainingModel modelTrain)
 {
     _modelTrain = modelTrain;
     _modelTrain.GetListAuthenticationFormComplete += new EventHandler<ComplexResultsArgs<Authentication>>(_model_GetListAuthenticationFormComplete);
     _modelTrain.ImportSubjectComplete += new EventHandler<SubmitOperationEventArgs>(_modelTrain_ImportSubjectComplete);
 }
 public EditChooseSubjectViewModel(ITrainingModel modelTrain)
 {
     _modelTrain = modelTrain;
     _modelTrain.GetListSubjectComplete += new EventHandler<EntityResultsArgs<Vlu_MonHoc>>(_modelTrain_GetListSubjectComplete);
 }
 public override void Cleanup()
 {
     if (_modelTrain != null)
     {
         _modelTrain.GetListDepartmentComplete -= new EventHandler<EntityResultsArgs<Vlu_Khoa>>(_modelTrain_GetListDepartmentComplete);
         _modelTrain = null;
     }
     _listData = null;
     _selectedItem = null;
     if (DialogSended != null)
         DialogSended = null;
     base.Cleanup();
 }
        public CheckAccessAttribute()
        {
            ITrainingModel service = new TrainingRepository();

            _service = service;
        }
Example #41
0
 public MainPageViewModel(IAuthenticationModel modelAuth, ITrainingModel modelTrain, ISettingModel modelSetting)
 {
     _modelAuth    = modelAuth;
     _modelTrain   = modelTrain;
     _modelSetting = modelSetting;
 }
 public override void Cleanup()
 {
     if (_modelTrain != null)
     {
         _modelTrain.GetListAuthenticationFormComplete -= new EventHandler<ComplexResultsArgs<Authentication>>(_model_GetListAuthenticationFormComplete);
         _modelTrain.GetListDepartmentComplete -= new EventHandler<EntityResultsArgs<Vlu_Khoa>>(_modelTrain_GetListDepartmentComplete);
         _modelTrain.DeleteDepartmentComplete -= new EventHandler<SubmitOperationEventArgs>(_modelTrain_DeleteDepartmentComplete);
         _modelTrain = null;
     }
     _listData = null;
     _selectedItem = null;
     if (DialogSended != null)
         DialogSended = null;
     base.Cleanup();
 }
 public override void Cleanup()
 {
     if (_modelTrain != null)
     {
         _modelTrain.GetListAuthenticationFormComplete -= new EventHandler<ComplexResultsArgs<Authentication>>(_model_GetListAuthenticationFormComplete);
         _modelTrain.GetListTrainingComplete -= new EventHandler<ComplexResultsArgs<ImportTraining>>(_modelTrain_GetListTrainingComplete);
         _modelTrain.DeleteTrainingComplete -= new EventHandler<InvokeOperationEventArgs>(_modelTrain_DeleteTrainingComplete);
         _modelTrain = null;
     }
     _listType = null;
     _listData = null;
     _selectedItem = null;
     if (DialogSended != null)
         DialogSended = null;
     base.Cleanup();
 }
Example #44
0
 public ListTrainingViewModel(ITrainingModel modelTrain)
 {
 }
Example #45
0
 public override void Cleanup()
 {
     if (_modelTrain != null)
     {
         _modelTrain.GetListAuthenticationFormComplete -= new EventHandler<ComplexResultsArgs<Authentication>>(_model_GetListAuthenticationFormComplete);
         _modelTrain.GetClassComplete -= new EventHandler<EntityResultsArgs<Vlu_LopHoc>>(_modelTrain_GetClassComplete);
         _modelTrain.GetClassParentComplete -= new EventHandler<EntityResultsArgs<Vlu_LopHoc>>(_modelTrain_GetClassParentComplete);
         _modelTrain.GetClassByKeyComplete -= new EventHandler<EntityResultsArgs<Vlu_LopHoc>>(_modelTrain_GetClassByKeyComplete);
         _modelTrain.SaveClassComplete -= new EventHandler<SubmitOperationEventArgs>(_modelTrain_SaveClassComplete);
         _modelTrain.GetListDepartmentComplete -= new EventHandler<EntityResultsArgs<Vlu_Khoa>>(_modelTrain_GetListDepartmentComplete);
         _modelTrain = null;
     }
     ItemEdit = null;
     if (_dialogSended != null)
         _dialogSended = null;
     base.Cleanup();
 }
 public EditChooseClassViewModel(ITrainingModel modelTrain)
 {
     _modelTrain = modelTrain;
     _modelTrain.GetListClassComplete += new EventHandler<EntityResultsArgs<Vlu_LopHoc>>(_modelTrain_GetListClassComplete);
 }
 public override void Cleanup()
 {
     if (_modelTrain != null)
     {
         _modelTrain.GetListAuthenticationFormComplete -= new EventHandler<ComplexResultsArgs<Authentication>>(_model_GetListAuthenticationFormComplete);
         _modelTrain.GetListDepartmentComplete -= new EventHandler<EntityResultsArgs<Vlu_Khoa>>(_modelTrain_GetListDepartmentComplete);
         _modelTrain.ImportClassComplete -= new EventHandler<SubmitOperationEventArgs>(_modelTrain_ImportClassComplete);
         _modelTrain = null;
     }
     _listData = null;
     _listLopHoc = null;
     _listType = null;
     if (_dialogSended != null)
         _dialogSended = null;
     base.Cleanup();
 }
 public ListDepartmentViewModel(ITrainingModel modelTrain)
 {
     _modelTrain = modelTrain;
     _modelTrain.GetListAuthenticationFormComplete += new EventHandler<ComplexResultsArgs<Authentication>>(_model_GetListAuthenticationFormComplete);
     _modelTrain.GetListDepartmentComplete += new EventHandler<EntityResultsArgs<Vlu_Khoa>>(_modelTrain_GetListDepartmentComplete);
     _modelTrain.DeleteDepartmentComplete += new EventHandler<SubmitOperationEventArgs>(_modelTrain_DeleteDepartmentComplete);
 }
Example #49
0
 public EditClassViewModel(ITrainingModel modelTrain)
 {
     _modelTrain = modelTrain;
     _modelTrain.GetListAuthenticationFormComplete += new EventHandler<ComplexResultsArgs<Authentication>>(_model_GetListAuthenticationFormComplete);
     _modelTrain.GetClassComplete += new EventHandler<EntityResultsArgs<Vlu_LopHoc>>(_modelTrain_GetClassComplete);
     _modelTrain.GetClassParentComplete += new EventHandler<EntityResultsArgs<Vlu_LopHoc>>(_modelTrain_GetClassParentComplete);
     _modelTrain.GetClassByKeyComplete += new EventHandler<EntityResultsArgs<Vlu_LopHoc>>(_modelTrain_GetClassByKeyComplete);
     _modelTrain.SaveClassComplete += new EventHandler<SubmitOperationEventArgs>(_modelTrain_SaveClassComplete);
     _modelTrain.GetListDepartmentComplete += new EventHandler<EntityResultsArgs<Vlu_Khoa>>(_modelTrain_GetListDepartmentComplete);
 }
Example #50
0
 public EditChooseClassViewModel(ITrainingModel modelTrain)
 {
     _modelTrain = modelTrain;
     _modelTrain.GetListClassComplete += new EventHandler <EntityResultsArgs <Vlu_LopHoc> >(_modelTrain_GetListClassComplete);
 }