TiReischl 5 лет назад
Родитель
Сommit
b182c2bd8f
1 измененных файлов с 11 добавлено и 0 удалено
  1. 11 0
      SketchAssistant/SketchAssistant/Form1.cs

+ 11 - 0
SketchAssistant/SketchAssistant/Form1.cs

@@ -148,6 +148,13 @@ namespace SketchAssistant
             //pictureBoxRight.Image = rightImage;
             //pictureBoxRight.Image = rightImage;
             timer2.Enabled = !clicked;
             timer2.Enabled = !clicked;
             clicked = !clicked;
             clicked = !clicked;
+
+            if (clicked)
+            {
+                painttoolStripMenuItem.BackColor = Color.Aqua;
+            }
+            else
+                painttoolStripMenuItem.BackColor = Color.White;
         }
         }
 
 
         //add a Point on every tick to the Drawpath
         //add a Point on every tick to the Drawpath
@@ -160,6 +167,10 @@ namespace SketchAssistant
                 pictureBoxRight.Image = rightImage;
                 pictureBoxRight.Image = rightImage;
                 i++;
                 i++;
             }
             }
+            if (!mousedown)
+            {
+                points[0] = p;
+            }
         }
         }
 
 
         //get current Mouse positon
         //get current Mouse positon