Пример #1
0
        void AudiencePoll(object sender, EventArgs e)
        {
            var frag = AudiencePollDialogFragment.Create(correctOption, () => OptionClick(correctOption));

            frag.Show(FragmentManager, "AudiencePoll");

            audiencePollUsed = true;
            audiencePollButton.SetBackgroundResource(Resource.Drawable.audience_active);

            LifelineState(false);

            audiencePollButton.Clickable = false;
        }
Пример #2
0
        public static AudiencePollDialogFragment Create(int CorrectOption, Action GoWithAudience)
        {
            var f = new AudiencePollDialogFragment();

            f.GoingWithAudience += GoWithAudience;

            var args = new Bundle();

            args.PutInt(nameof(CorrectOption), CorrectOption);
            f.Arguments = args;

            return(f);
        }