public void Do() { if (customHandler != null) { customHandler(); } else if (URL != "") { Application.OpenURL(URL); } else if (targetPanel != null && currentPanel != null) { currentPanel.Close(true); targetPanel.Open(true); } }