public void UpdateInterface(UpdateInterfaceParams pars) { switch (pars.Type) { case TurnType.TurnFromRight: { UpdateLeftRightPage(BookLoader.Instance().PreviousPageLeftPart, BookLoader.Instance().PreviousPageRightPart, BookLoader.Instance().CurrentPageLeftPage, BookLoader.Instance().CurrentPageRightPage, BookLoader.Instance().NextPageLeftPart, BookLoader.Instance().NextPageRightPart); this.AnimateToNextPage(500); break; } case TurnType.TurnFromLeft: { UpdateLeftRightPage(BookLoader.Instance().PreviousPageLeftPart, BookLoader.Instance().PreviousPageRightPart, BookLoader.Instance().CurrentPageLeftPage, BookLoader.Instance().CurrentPageRightPage, BookLoader.Instance().NextPageLeftPart, BookLoader.Instance().NextPageRightPart); this.AnimateToPreviousPage(500); break; } case TurnType.NoTurn: { UpdateLeftRightPage(BookLoader.Instance().PreviousPageLeftPart, BookLoader.Instance().PreviousPageRightPart, BookLoader.Instance().CurrentPageLeftPage, BookLoader.Instance().CurrentPageRightPage, BookLoader.Instance().NextPageLeftPart, BookLoader.Instance().NextPageRightPart); break; } default: { break; } } }
public void UpdateInterface(UpdateInterfaceParams pars) { switch (pars.Type) { case TurnType.ClickedImage: { Image_MouseLeftButtonDown(pars.ClikedImage); break; } default: { break; } } }
public void UpdateInterface(UpdateInterfaceParams pars) { //update book layout if something change in bookdata //if (BookLoader.Instance().IsRightToLeftTransition) { //FIXBUG Dispatcher.BeginInvoke(() => ChangePageBeforeTransition(this, new EventArgs())); //TypeTransition = UpdatePageTransition.NextPage; this.startTransition(); this.mouse = new Point(-this.pageHalfWidth, this.pageHalfHeight); } //else { Dispatcher.BeginInvoke(() => ChangePageBeforeTransition(this, new EventArgs())); //TypeTransition = UpdatePageTransition.PreviousPage; this.startTransition(); this.mouse = new Point(-this.pageHalfWidth, this.pageHalfHeight); } }