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); } }
public CentralControllerBLL(Project project) { _thisProject = project; _dal = new CentralControllerDAL(); }