25 lines
705 B
C#
25 lines
705 B
C#
namespace RhSolutions.QueryModifiers.DrinkingWaterHeatingFittings;
|
|
|
|
public class BendFormerHeating : DrinkingWaterHeatingFitting
|
|
{
|
|
protected override string _title => "Фиксатор поворота";
|
|
public override bool TryQueryModify(string input, out string output)
|
|
{
|
|
output = string.Empty;
|
|
var diameterMatch = _diameter.Match(input);
|
|
if (!diameterMatch.Success)
|
|
{
|
|
return false;
|
|
}
|
|
string diameter = diameterMatch.Groups["Diameter"].Value;
|
|
if (diameter == "16")
|
|
{
|
|
diameter += "/17";
|
|
}
|
|
var angleMatch = _angle.Match(input);
|
|
string angle = angleMatch.Success ? angleMatch.Groups["Angle"].Value : "90";
|
|
output = $"{_title} {diameter}/{angle}°";
|
|
return true;
|
|
}
|
|
}
|