private void BindOutDoorImageUI(string selectedModel) { if (ListOduModel != null) { if (ListOduModel.Count > 0) { var sourceDir = System.IO.Path.Combine(defaultFolder, navigateToFolder); if (ListOduModel.Where(x => x.DisplayName.Equals(selectedModel)).FirstOrDefault() != null) { this.OduImagePath = ListOduModel.Where(x => x.DisplayName.Equals(selectedModel)).FirstOrDefault().OduImagePath; } } } }
private void GetModalspacification() { if (CurrentSystem != null) { if (EnableManualSelection == false) { //CurrentSystem.IsAuto = true; if (CurrentSystem.OutdoorItem != null) { CoolingRated = CurrentSystem.OutdoorItem.CoolingCapacity; HeatingRated = CurrentSystem.OutdoorItem.HeatingCapacity; CoolingCorrected = CurrentSystem.CoolingCapacity; HeatingCorrected = CurrentSystem.HeatingCapacity; MaxNumberIDUconnections = CurrentSystem.OutdoorItem.MaxIU; ActualRatio = ((CurrentSystem.Ratio * 100).ToString("n0") + "%"); if (ListOfSeries != null && ListOfSeries.Count > 0 && ListOfSeries[0].DisplayName != null) { var startIndex = (SelectedProductSeries.IndexOf("~") - 3) <= 0?SelectedProductSeries.IndexOf("V/") - 3 :SelectedProductSeries.IndexOf("~") - 3; ElectricalSpecification = SelectedProductSeries.Substring(startIndex, (SelectedProductSeries.IndexOf("Hz") + 2) - startIndex); } } } else { //CurrentSystem.IsAuto = false; if (ListOduModel.FirstOrDefault(mm => mm.SelectedValues == SelectedModel) != null) { ModelFull = ListOduModel.FirstOrDefault(mm => mm.SelectedValues == SelectedModel).FullModelName; } BindOutDoorImageUI(SelectedModel); CurrentSystem.OutdoorItem = bll.GetOutdoorItemBySeries(ModelFull, SelectedSeries); if (CurrentSystem.OutdoorItem != null) { CoolingRated = CurrentSystem.OutdoorItem.CoolingCapacity; HeatingRated = CurrentSystem.OutdoorItem.HeatingCapacity; CoolingCorrected = CurrentSystem.CoolingCapacity; HeatingCorrected = CurrentSystem.HeatingCapacity; MaxNumberIDUconnections = CurrentSystem.OutdoorItem.MaxIU; ActualRatio = ((CurrentSystem.Ratio * 100).ToString("n0") + "%"); if (ListOfSeries != null && ListOfSeries[0].DisplayName != null) { var startIndex = (SelectedProductSeries.IndexOf("~") - 3) <= 0 ? SelectedProductSeries.IndexOf("V/") - 3 : SelectedProductSeries.IndexOf("~") - 3; ElectricalSpecification = SelectedProductSeries.Substring(startIndex, (SelectedProductSeries.IndexOf("Hz") + 2) - startIndex); } } } } }