public void Execute() { if (menuFunc != null) { menuFunc.Invoke(); } else if (menuFunc2 != null) { menuFunc2.Invoke(userData); } }