private void SendEvent(string eventName, bool exitGUI)
{
if (this.delegateView != null)
{
Event e = EditorGUIUtility.CommandEvent(eventName);
base.Repaint();
this.delegateView.SendEvent(e);
if (exitGUI)
{
GUIUtility.ExitGUI();
}
}
GUI.changed = true;
}