- Add ComboBox element to the API

This commit is contained in:
Stone-Red-Code
2021-10-30 21:06:53 +02:00
parent 2f6662caea
commit 5e3642e539
10 changed files with 161 additions and 113 deletions
+1 -11
View File
@@ -19,17 +19,7 @@ namespace DesktopMagicPluginAPI
public IPluginData Application
{
get => application;
set
{
if (application is null)
{
application = value;
}
else
{
throw new InvalidOperationException($"You cannot set the value of the {nameof(Application)} property");
}
}
set => application = application is null ? value : throw new InvalidOperationException($"You cannot set the value of the {nameof(Application)} property");
}
/// <summary>