Browse Source

Small Tweaks

Kenric Nugteren 10 months ago
parent
commit
c870ddc69a

+ 1 - 1
inabox.wpf/DynamicGrid/Columns/DynamicTextColumn.cs

@@ -5,7 +5,7 @@ namespace InABox.DynamicGrid;
 
 public class DynamicTextColumn : DynamicActionColumn
 {
-    public delegate object GetTextDelegate(CoreRow? row);
+    public delegate object? GetTextDelegate(CoreRow? row);
 
     public GetTextDelegate Text { get; protected set; }
         

+ 2 - 2
inabox.wpf/DynamicGrid/DynamicGrid.cs

@@ -1405,11 +1405,11 @@ public abstract class DynamicGrid<T> : DynamicGrid, IDynamicGridUIComponentParen
         DoEdit();
     }
 
-    protected virtual void DoAdd(bool OpenEditorOnDirectEdit = false)
+    protected virtual void DoAdd(bool openEditorOnDirectEdit = false)
     {
         //CoreRow row = (SelectedRow > -1) && (SelectedRow < Data.Rows.Count) ?  Data.Rows[this.SelectedRow] : null;
 
-        if (IsDirectEditMode() && !OpenEditorOnDirectEdit)
+        if (IsDirectEditMode() && !openEditorOnDirectEdit)
         {
             CreateItems(null);
         }