Ejemplo n.º 1
0
        protected override void PrepareNotify()
        {
            DataEventState.BeforeAnimation(ref Data);

            UpdateParams = new UpdateInterfaceParams()
            {
                Type = Data.TurnTypeManager
            };
        }
Ejemplo n.º 2
0
        protected override void PrepareNotify()
        {
            DataEventState.BeforeAnimation(ref Data);


            if (BookState == BookLoaderState.MenuPage)
            {
                if (Data.iCurrentMenuPage == 0)
                {
                    Data.canTurnLeft = false;
                }
                else
                {
                    Data.canTurnLeft = true;
                }

                if (Data.iCurrentMenuPage + 2 >= Data.CurrentMenuPage.ListSubMenu.Count)
                {
                    Data.canTurnRight = false;
                }
                else
                {
                    Data.canTurnRight = true;
                }
            }
            if (BookState == BookLoaderState.ArticlePage)
            {
                if (Data.CurrentArticlePage == 0)
                {
                    Data.canTurnLeft = false;
                }
                else
                {
                    Data.canTurnLeft = true;
                }

                if (Data.CurrentArticlePage + 2 >= Data.CurrentArticle.ListSubMenu.Count)
                {
                    Data.canTurnRight = false;
                }
                else
                {
                    Data.canTurnRight = true;
                }
            }

            UpdateParams = new UpdateInterfaceParams()
            {
                Type        = Data.TurnTypeManager,
                ClikedImage = Data.ClickedImage
                              //,
                              //CanTurnLeft = Data.canTurnLeft,
                              //CanTurnRight = Data.canTurnRight
            };
        }