private void OnGUI()
{
this.HandleKeyboard();
if (this.m_ObjectTreeWithSearch.IsInitialized())
{
this.OnObjectTreeGUI();
}
else
{
this.OnObjectGridGUI();
}
if ((Event.current.type == EventType.KeyDown) && (Event.current.keyCode == KeyCode.Escape))
{
this.Cancel();
}
}