Take a look at my code:
public static void show()
{
window = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.Open));
Button back = (Button)Program.window.GetChildByName(Definitions.MANU_OPTION+"0");
back.TapEvent += new OnTap(back_TapEvent);
Glide.MainWindow = Program.window;
}
static void back_TapEvent(object sender)
{
// Program.enSenderGUI = Definitions.LastGui.enTestingPins;
GoBackGUI();
return;
}
It’s simple but my question is, do i need to define the tap event any time i call the function show ? Or is there a way to define the tap only once at the first time the function show called? I wanted to a static boolean that check if this is the first time the function is called and then i won’t have to call define the tap event again and save time… possible?
Thanks