public override string GetLocalizedString(GridStringId id) { string localized = BaumaxLocalizer.GetLocalized(StringGridStringId + id); if (String.IsNullOrEmpty(localized)) { localized = base.GetLocalizedString(id); } return(localized); }
protected override void ValidateWorkingHours() { //bool canEstimate = true; IList info = ClientEnvironment.StoreService.CanEstimateWorkingHoursInfo(_StoreId, EstimationYear); imageListBox.SuspendLayout(); imageListBox.Items.Clear(); foreach (CanEstimateWorkingHoursResult result in info) { if (!result.Result) { //canEstimate = false; switch (result.Condition) { case EstimateWorkingHoursCondition.BufferHoursExists: { string message = GetLocalized(result.Condition) + " (" + Localizer.GetLocalized("NoValueProvidedForWorld") + " 0 )"; imageListBox.Items.Add(message, _RedIconIndex); _IsNeedChangeBufferHours = true; break; } case EstimateWorkingHoursCondition.AddHoursCalcExists: { string message = GetLocalized(result.Condition) + " (" + Localizer.GetLocalized("NoValueProvidedForWorld") + " 1 )"; imageListBox.Items.Add(message, _RedIconIndex); break; } default: imageListBox.Items.Add(GetLocalized(result.Condition), _RedIconIndex); break; } } else { imageListBox.Items.Add(GetLocalized(result.Condition), _GreenIconIndex); } if (result.Condition == EstimateWorkingHoursCondition.BufferHoursExists && result.Result) { _IsNeedChangeBufferHours = false; } } imageListBox.ResumeLayout(); #if DEBUG //btn_CopyBH.Visible = _IsNeedChangeBufferHours; #endif //btn_EstimateButton.Enabled = canEstimate; }