24 lines
647 B
C#
24 lines
647 B
C#
namespace RhSolutions.MLModifiers.DrinkingWaterHeatingFittings;
|
|
|
|
[MLModifierKey("Гофротруба RAUTITAN")]
|
|
public class ProtectivePipe : 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)
|
|
{
|
|
string diameter = diameterMatch.Groups["Diameter"].Value;
|
|
if (diameter == "16")
|
|
{
|
|
diameter += "/17";
|
|
}
|
|
output = $"{_title} {diameter}";
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
} |