Procházet zdrojové kódy

Added function to clear custom form elements

Kenric Nugteren před 5 měsíci
rodič
revize
cdaa42fac8

+ 6 - 0
inabox.wpf/DigitalForms/Designer/DynamicFormDesignGrid.cs

@@ -319,6 +319,12 @@ namespace InABox.DynamicGrid
             }
             }
         }
         }
 
 
+        public void ClearElementTypesAndActions()
+        {
+            _elements.Clear();
+            _elementActions.Clear();
+        }
+
         public void AddElementType<TElement>(string caption, string category, bool allowduplicate = false, bool visible = true)
         public void AddElementType<TElement>(string caption, string category, bool allowduplicate = false, bool visible = true)
             where TElement : DFLayoutElement
             where TElement : DFLayoutElement
         {
         {