27 lines
792 B
C#
27 lines
792 B
C#
namespace RhSolutions.MLModifiers.DrinkingWaterHeatingFittings;
|
||
|
||
[MLModifierKey("Угольник настенный наружный")]
|
||
public class ThreadElbowWallExternal : 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;
|
||
}
|
||
var threadMatch = _thread.Match(input);
|
||
if (!threadMatch.Success)
|
||
{
|
||
return false;
|
||
}
|
||
string diameter = diameterMatch.Groups["Diameter"].Value;
|
||
string thread = threadMatch.Groups["Thread"].Value;
|
||
output = $"{_title} {diameter}-R {thread}";
|
||
return true;
|
||
}
|
||
}
|