コード例 #1
0
ファイル: TypeInfoViewModel.cs プロジェクト: vijju1608/VRF
        public TypeInfoViewModel(IProjectInfoBAL projctInfoBll, IEventAggregator EventAggregator)
        {
            try
            {
                Initializations();
                _eventAggregator              = EventAggregator;
                this.ButtonVisibility         = "Hidden";
                SingleFloorCheckedCommand     = new DelegateCommand(SingleFloorCheckedEvent);
                SingleFloorUnCheckedCommand   = new DelegateCommand(SingleFloorUnCheckedEvent);
                MultipleFloorCheckedCommand   = new DelegateCommand(MultipleFloorCheckedEvent);
                MultipleFloorUnCheckedCommand = new DelegateCommand(MultipleFloorUnCheckedEvent);
                _eventAggregator.GetEvent <cntrlTexthiding>().Subscribe(GetTypeTabVisibility);

                _eventAggregator.GetEvent <BeforeCreate>().Subscribe(OnBeforeCreate);
                LoadFloor            = new DelegateCommand <int?>(OnMultiFloorLostFocus);
                RegularCheckedCommnd = new DelegateCommand(RegularCheckedEvent);
                _projectInfoBll      = projctInfoBll;
                _controllerDAL       = new CentralControllerDAL();
                //GetSystemTypeList();


                ShowCommand = new DelegateCommand(ShowMethod);
                HideCommand = new DelegateCommand(HideMethod);
                _eventAggregator.GetEvent <Cleanup>().Subscribe(OnCleanup);
            }
            catch (Exception ex)
            {
                int?id = CurrentProject?.projectID;
                Logger.LogProjectError(id, ex);
            }
        }
コード例 #2
0
 public CentralControllerBLL(Project project)
 {
     _thisProject = project;
     _dal         = new CentralControllerDAL();
 }