Beispiel #1
0
    public static void LoadPage <T>(object dat = null) where T : UIPage, new()
    {
        if (CurrentPage is T)
        {
            CurrentPage.Show(dat);
            return;
        }
        UIAnimation.Manage.ReleaseAll();
        if (CurrentPage != null)
        {
            CurrentPage.Save();
            CurrentPage.Dispose();
        }
        var t = new T();

        t.Initial(Root, dat);
        t.ReSize();
        CurrentPage = t;
    }
Beispiel #2
0
    public static void LoadPage <T>(object dat = null) where T : UIPage, new()
    {
        if (CurrentPage is T)
        {
            CurrentPage.Show(dat);
            return;
        }
        EventCallBack.ClearEvent();
        AnimationManage.Manage.ReleaseAll();
        if (CurrentPage != null)
        {
            CurrentPage.Save();
            CurrentPage.Dispose();
        }
        var t = new T();

        t.Initial(Root, dat);
        t.ReSize();
        CurrentPage = t;
        t.ChangeLanguage();
    }
Beispiel #3
0
    public static void LoadPage <T>(object dat = null) where T : UIPage, new()
    {
        if (CurrentPage is T)
        {
            CurrentPage.Show(dat);
            return;
        }
        if (HCanvas.MainCanvas != null)//释放当前页面所有事件
        {
            HCanvas.MainCanvas.ClearAllAction();
        }
        TextInput.Clear();
        if (CurrentPage != null)
        {
            CurrentPage.Save();
            CurrentPage.Dispose();
        }
        var t = new T();

        t.Initial(Root, dat);
        t.ReSize();
        CurrentPage = t;
    }