mirror of
https://github.com/Stone-Red-Code/DesktopMagic.git
synced 2026-09-04 17:06:12 +02:00
Rename Plugin & API namespaces and implement saving/loading of setting
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace DesktopMagicPluginAPI.Settings;
|
||||
namespace DesktopMagic.Api.Settings;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a up-down control.
|
||||
@@ -61,4 +61,15 @@ public class IntegerUpDown : Setting
|
||||
Maximum = max;
|
||||
Value = value;
|
||||
}
|
||||
|
||||
internal override string GetJsonValue()
|
||||
{
|
||||
return Value.ToString();
|
||||
}
|
||||
|
||||
internal override void SetJsonValue(string value)
|
||||
{
|
||||
_ = int.TryParse(value, out int result);
|
||||
Value = result;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user