Updated Guide (markdown)

Stone_Red
2021-09-10 17:16:56 +02:00
parent b2ec72fb7d
commit 58ed6a37cf
+2 -2
@@ -61,12 +61,12 @@ namespace DesktopMagicPlugin
{
public class InputExamplePlugin : Plugin
{
public override int UpdateInterval { get; set; } = 0; //Set the update interval to 0 so that the window is not updated automatically.
public override int UpdateInterval { get; set; } = 0; //Set the update interval to 0 so that the window will not be refreshed automatically.
[Element("Text:")] //Mark the property as element with the specified description
private TextBox textBox = new TextBox("abc"); //Create a text box with the specified default value.
public InputExamplePlugin()
public override void Start() //The "Start" metod is called once when the plugin is loaded.
{
textBox.OnValueChanged += TextBox_OnValueChanged; //Add an event handler to the "OnValueChanged" event.
}