mirror of
https://github.com/Stone-Red-Code/DesktopMagic.git
synced 2026-09-04 08:56:15 +02:00
Updated Guide (markdown)
+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.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user