public TotalHeatExchDetailsInfoViewModel(IEventAggregator EventAggregator, IModalWindowService winService, JCHVRF_New.Model.LightProject thisProj)
 {
     try
     {
         NumericOutdoorCDBCommand = new DelegateCommand(NumericOutdoorCDB_LostFocus);
         NumericOutdoorCWBCommand = new DelegateCommand(NumericOutdoorCWBCommand_LostFocus);
         NumericOutdoorHDBCommand = new DelegateCommand(NumericOutdoorHDBCommand_LostFocus);
         NumericRHommand          = new DelegateCommand(NumericRHommand_LostFocus);
         ValidateUnitNameCommand  = new DelegateCommand(ValidateUnitNameOnLostFocus);
         _eventAggregator         = EventAggregator;
         _winService       = winService;
         _bll              = new JCHVRF.BLL.IndoorBLL(JCHVRF.Model.Project.CurrentProject.SubRegionCode, JCHVRF.Model.Project.CurrentProject.BrandCode);
         ChangeTempCommand = new DelegateCommand(btnChangeTempUClicked);
         _eventAggregator.GetEvent <RoomListSaveSubscriber>().Subscribe(GetRoomList);
         AddFloorCommand    = new DelegateCommand(OnAddFloorClicked);
         AddEditRoomCommand = new DelegateCommand(OnAddEditRoomClicked);
         _eventAggregator.GetEvent <FloorListSaveSubscriber>().Subscribe(OpenGetFloorList);
         _eventAggregator.GetEvent <CleanupSystemWizard>().Subscribe(OnCleanup);
     }
     catch (Exception ex)
     {
         int?id = Project.GetProjectInstance?.projectID;
         Logger.LogProjectError(id, ex);
     }
 }
 public TotalHeatExUnitInfoViewModel(IEventAggregator EventAggregator, IModalWindowService winService, JCHVRF_New.Model.LightProject thisProj)
 {
     try
     {
         NumericOutdoorCDBCommand = new DelegateCommand(NumericOutdoorCDB_LostFocus);
         NumericOutdoorCWBCommand = new DelegateCommand(NumericOutdoorCWBCommand_LostFocus);
         NumericOutdoorHDBCommand = new DelegateCommand(NumericOutdoorHDBCommand_LostFocus);
         NumericRHommand          = new DelegateCommand(NumericRHommand_LostFocus);
         //CreateClickCommand = new DelegateCommand(CreateHENextClick);
         ChangeTempCommand       = new DelegateCommand(btnChangeTempUClicked);
         AddFloorCommand         = new DelegateCommand(OnAddFloorClicked);
         AddEditRoomCommand      = new DelegateCommand(OnAddEditRoomClicked);
         ValidateUnitNameCommand = new DelegateCommand(ValidateUnitNameOnLostFocus);
         _eventAggregator        = EventAggregator;
         _winService             = winService;
         _eventAggregator.GetEvent <RoomListSaveSubscriber>().Subscribe(GetRoomList);
         _eventAggregator.GetEvent <FloorListSaveSubscriber>().Subscribe(OpenGetFloorList);
         GetRoomList();
         BindFloor();
         //BindDefaultFanSpeed();
         _eventAggregator.GetEvent <TheuInfoVisibility>().Subscribe(OnTypeSelected);
         _eventAggregator.GetEvent <BeforeCreate>().Subscribe(OnBeforeCreate);
         _eventAggregator.GetEvent <Cleanup>().Subscribe(OnCleanup);
         _indoorBll = new JCHVRF.BLL.IndoorBLL(JCHVRF.Model.Project.CurrentProject.SubRegionCode, JCHVRF.Model.Project.CurrentProject.BrandCode);
         WorkFlowContext.FloorNames = null;
         bll = new JCHVRF.BLL.OutdoorBLL(JCHVRF.Model.Project.CurrentProject.SubRegionCode, JCHVRF.Model.Project.CurrentProject.BrandCode);
         if (JCHVRF.Model.Project.GetProjectInstance.DesignCondition != null)
         {
             BindInternalDesignConditions();
         }
         WorkFlowContext.FloorNames = new List <string>();
     }
     catch (Exception ex)
     {
         int?id = Project.GetProjectInstance?.projectID;
         Logger.LogProjectError(id, ex);
     }
 }