SchematicDrawing : Intersections of pipes drawn as a bow having darker color.

This commit is contained in:
Milan Hanajik
2020-06-18 22:59:22 +02:00
parent 5b5f0ac41e
commit 90e58266a9
4 changed files with 253 additions and 102 deletions
@@ -644,12 +644,12 @@ namespace TBF.UI.Bench.EditSchDrawing
void DeleteSelectedPipe()
{
Pipe edge = drawingCtrl.GetTempPipe();
if (edge != null)
Pipe pipe = drawingCtrl.GetTempPipe();
if (pipe != null)
{
/// Delete selected pipe
TBF.BenchControl.Various.Drawing.Pipes.Configuration pipesCfg = null;
switch (edge.Sz)
switch (pipe.Sz)
{
case Sz.S: pipesCfg = pipesScfg; break;
case Sz.M: pipesCfg = pipesMcfg; break;
@@ -664,7 +664,7 @@ namespace TBF.UI.Bench.EditSchDrawing
int ix = -1;
for (int i = 0; i < oriEdges.Length; i++)
{
if (oriEdges[i] == edge.ToString())
if (oriEdges[i] == pipe.ToString())
{
ix = i;
break;
@@ -683,7 +683,7 @@ namespace TBF.UI.Bench.EditSchDrawing
}
}
switch (edge.Sz)
switch (pipe.Sz)
{
case Sz.S: drawingCtrl.PipesS = pipesCfg.Pipes; break;
case Sz.M: drawingCtrl.PipesM = pipesCfg.Pipes; break;