20 lines
553 B
C#
20 lines
553 B
C#
|
||
using System.Text.RegularExpressions;
|
||
|
||
namespace RhSolutions.Api.Services;
|
||
|
||
public class ThreadTPieceExternal : ThreadTPieceWall
|
||
{
|
||
protected override string ConstructName(MatchCollection diameters, Match thread)
|
||
{
|
||
Capture t = thread.Groups["Thread"].Captures.First();
|
||
if (diameters.Count == 1)
|
||
{
|
||
return $"Тройник RAUTITAN с наружной резьбой {diameters[0]}-{diameters[0]}-R {t}";
|
||
}
|
||
else
|
||
{
|
||
return $"Тройник RAUTITAN с наружной резьбой {diameters[0]}-{diameters[1]}-R {t}";
|
||
}
|
||
}
|
||
} |