public void Show(ShowMode showMode, bool loadPosition, bool displayImmediately)
{
if (showMode == ShowMode.AuxWindow)
{
showMode = ShowMode.Utility;
}
if ((showMode == ShowMode.Utility) || IsPopup(showMode))
{
this.m_DontSaveToLayout = true;
}
this.m_ShowMode = (int) showMode;
if (!this.isPopup)
{
this.Load(loadPosition);
}
this.Internal_Show(this.m_PixelRect, this.m_ShowMode, this.m_MinSize, this.m_MaxSize);
if (this.m_RootView != null)
{
this.m_RootView.SetWindowRecurse(this);
}
this.Internal_SetTitle(this.m_Title);
this.SetBackgroundColor(skinBackgroundColor);
this.Internal_BringLiveAfterCreation(displayImmediately, true);
if (this != null)
{
this.position = this.FitWindowRectToScreen(this.m_PixelRect, true, false);
this.rootView.position = new Rect(0f, 0f, this.m_PixelRect.width, this.m_PixelRect.height);
this.rootView.Reflow();
this.Save();
}
}