¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

best practices to instantiate public variables, EventHandlers and class objects


 

What are some best practices to instantiate objects between Simpl# and Simpl+.

Public string MyMessage;
public event EventHandler<MyEventArgs> MyEventToCall;
readonly RootButtons[] _buttons = new RootButtons[16];

? public class MyEventArgs : EventArgs //data that is sent to Simpl+
? ? {
? ? ? ? public ushort MyBUTTONINDEX { get; set; }
? ? ? ? public ushort MyBUTTON_FB { get; set; }
? ? ? ? public string ERRORMESSAGE { get; set; }
?
? ? }
? ? public class RootButtons
? ? {
? ? ? ? public ushort BUTTON_FB { get; set; }
? ? }

Join [email protected] to automatically receive all group messages.