Ejemplo n.º 1
0
        protected override void RootContainerInit()
        {
            AnimeListItemAddToListButton.SetOnClickListener(new OnClickListener(view => ViewModel.AddAnimeCommand.Execute(null)));
            AnimeListItemTagsButton.SetOnClickListener(new OnClickListener(OnTagsButtonClick));
            AnimeListItemStatusButton.SetOnClickListener(
                new OnClickListener(view => ShowStatusDialog()));
            AnimeListItemScoreButton.SetOnClickListener(
                new OnClickListener(view => ShowRatingDialog()));

            AnimeListItemIncButton.SetOnClickListener(
                new OnClickListener(view => ViewModel.IncrementWatchedCommand.Execute(null)));
            AnimeListItemDecButton.SetOnClickListener(
                new OnClickListener(view => ViewModel.DecrementWatchedCommand.Execute(null)));

            RootContainer.SetOnLongClickListener(new OnLongClickListener(view => MoreButtonOnClick()));
            RootContainer.SetOnClickListener(new OnClickListener(view => ContainerOnClick()));
            base.RootContainerInit();
        }