Bladeren bron

Added IHasDesktopScript

Kenric Nugteren 2 dagen geleden
bovenliggende
commit
c5d92b1389

+ 11 - 0
InABox.Core/Classes/Script.cs

@@ -248,4 +248,15 @@ namespace InABox.Core
             }
         }
     }
+
+    /// <summary>
+    /// Indicates that this <see cref="BaseObject"/> has a script property, and is editable via the desktop. Implies that
+    /// there is a property that has the <see cref="ScriptEditor"/> attribute.
+    /// </summary>
+    /// <remarks>
+    /// Currently used for the "Check Script Status" function.
+    /// </remarks>
+    public interface IHasDesktopScript
+    {
+    }
 }

+ 1 - 1
InABox.Core/Postable/PosterSettings.cs

@@ -10,7 +10,7 @@ namespace InABox.Core
     /// <summary>
     /// The settings for a given <see cref="IPoster{TEntity, TSettings}"/>.
     /// </summary>
-    public abstract class PosterSettings : BaseObject, IGlobalConfigurationSettings
+    public abstract class PosterSettings : BaseObject, IGlobalConfigurationSettings, IHasDesktopScript
     {
         [NullEditor]
         public string PostableType { get; set; }

+ 1 - 1
inabox.wpf/Dashboard/Editor/DynamicDashboardAdditionalTableGrid.cs

@@ -8,7 +8,7 @@ using System.Threading.Tasks;
 
 namespace InABox.Wpf.Dashboard.Editor;
 
-internal class DynamicDashboardAdditionalTableEditItem : BaseObject
+internal class DynamicDashboardAdditionalTableEditItem : BaseObject, IHasDesktopScript
 {
     [EditorSequence(1)]
     public string Name { get; set; } = "";