private void DoSelectedPageGUI()
{
switch (this.selectedPage)
{
case Page.Overview:
this.OverviewPageGUI();
break;
case Page.Update:
if ((this.asUpdateWin != null) && (this.asUpdateWin != null))
{
this.asUpdateWin.DoGUI();
}
break;
case Page.Commit:
if ((this.asCommitWin != null) && (this.asCommitWin != null))
{
this.asCommitWin.DoGUI();
}
break;
case Page.History:
if ((this.asHistoryWin != null) && !this.asHistoryWin.DoGUI(base.m_Parent.hasFocus))
{
this.SwitchSelectedPage(Page.Overview);
GUIUtility.ExitGUI();
}
break;
case Page.ServerConfig:
if ((this.asConfigWin != null) && !this.asConfigWin.DoGUI())
{
this.SwitchSelectedPage(Page.Overview);
GUIUtility.ExitGUI();
}
break;
case Page.Admin:
if ((this.asAdminWin != null) && !this.asAdminWin.DoGUI())
{
this.SwitchSelectedPage(Page.Overview);
GUIUtility.ExitGUI();
}
break;
}
}