23 lines
769 B
C#
23 lines
769 B
C#
|
namespace RhSolutions.QueryModifiers.DrinkingWaterHeatingFittings;
|
|||
|
|
|||
|
public class BendFormerHeating : DrinkingWaterHeatingFitting
|
|||
|
{
|
|||
|
protected override string _title => "Фиксатор поворота без колец";
|
|||
|
protected override string? BuildRhSolutionsName(string query)
|
|||
|
{
|
|||
|
var diameterMatch = _diameter.Match(query);
|
|||
|
if (!diameterMatch.Success)
|
|||
|
{
|
|||
|
return null;
|
|||
|
}
|
|||
|
string diameter = diameterMatch.Groups["Diameter"].Value;
|
|||
|
if (diameter == "16")
|
|||
|
{
|
|||
|
diameter += "/17";
|
|||
|
}
|
|||
|
var angleMatch = _angle.Match(query);
|
|||
|
string angle = angleMatch.Success ? angleMatch.Groups["Angle"].Value : "90";
|
|||
|
return $"{_title} {diameter}/{angle}°";
|
|||
|
}
|
|||
|
}
|