示例#1
0
    /// <summary>
    /// 出栈需要返回界面(栈顶),显示界面,
    /// </summary>
    /// <param name="wnd"></param>
    public static void BackPopup(string name)
    {
        UI3WndType type = GetWndType(name);

        if (UI3WndType.ReturnFullScreen != type)
        {
            return;
        }
        UIStack <string> stack    = GetStackByWndName(name);
        string           lastName = Peek(stack);

        lastName = GetValid(lastName, false);
        stack.DisplayList();
        if (string.IsNullOrEmpty(lastName) == true)
        {
            return;
        }
        UI3Wnd wnd = createWindow(lastName);

        if (wnd == null)
        {
            return;
        }
        int index = stack.FindLastByName(GetValid(lastName, true));

        stack.PopAt(index);
        wnd.show();
        stack.DisplayList();
    }