Пример #1
0
 public void clearAllDrawingObject()
 {
     if (drawing_objects == null)
     {
         return;
     }
     foreach (HTuple dobj in drawing_objects)
     {
         HOperatorSet.ClearDrawingObject(dobj);
     }
     drawing_objects.Clear();
 }
Пример #2
0
 private void OnClearAllObjects_Click(object sender, RoutedEventArgs e)
 {
     lock (image_lock)
     {
         foreach (HTuple dobj in drawing_objects)
         {
             HOperatorSet.ClearDrawingObject(dobj);
         }
         drawing_objects.Clear();
     }
     hSmartWindowControlWPF1.HalconWindow.ClearWindow();
 }
 private void OnClearAllObjects_Click(object sender, RoutedEventArgs e)
 {
     if (drawing_objects == null)
     {
         return;
     }
     lock (image_lock)
     {
         foreach (HTuple dobj in drawing_objects)
         {
             HOperatorSet.ClearDrawingObject(dobj);
         }
         drawing_objects.Clear();
     }
     ProcessingPic.HalconWindow.ClearWindow();
 }