Esempio n. 1
0
        private void ShowImagesCollectionView()
        {
            if (AllowUserCompletion)
            {
                btnSubmitChallenge.UserInteractionEnabled = true;
                btnSubmitChallenge.SetBackgroundImage(UIImage.FromBundle("challenge-btn_submit"), UIControlState.Normal);//btnSubmitChallenge.Alpha = 1;
            }
            else
            {
                btnSubmitChallenge.UserInteractionEnabled = false;
                btnSubmitChallenge.SetBackgroundImage(new UIImage(), UIControlState.Normal);//btnSubmitChallenge.Alpha = 0.25f;
            }

            CollectionView.Hidden         = false;
            bottomButtonsContainer.Hidden = false;

            vCameraCenter.Hidden         = true;
            vDescriptionContainer.Hidden = true;
            submitContainer.Hidden       = true;

            CameraButton.SetBackgroundImage(UIImage.FromBundle("challenge-btn_photo"), UIControlState.Normal);

            UploadedCountText.Text = AllImagesCount.ToString();

            if (_collectionSource != null)
            {
                ImagesAttach.ForEach(x => x.Description = DescriptionText.Text);
                Images.AddRange(ImagesAttach);
                _collectionSource.Pictures = Images;
                RefreshCollections();
            }
        }
 private void UpdateButton(bool isPost)
 {
     if (!isPost)
     {
         CameraButton.SetBackgroundImage(UIImage.FromBundle("challenge-btn_submit"), UIControlState.Normal);
         return;
     }
     CameraButton.SetBackgroundImage(UIImage.FromBundle("challenge-btn_photo"), UIControlState.Normal);
 }