Beispiel #1
0
 private void DoneButton_TouchUpInside(object sender, EventArgs e)
 {
     DismissViewController(true, () =>
     {
         LaunchViewController.ReloadDetails();
     });
 }
Beispiel #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            launchViewModel           = new LaunchViewModel();
            jacketCardViewControllers = new List <JacketCardViewController>();
            launchVCRef = this;

            var     soundUrl = new NSUrl("Sounds/bgmusic.mp3");
            NSError err;

            audioPlayer                  = new AVAudioPlayer(soundUrl, "Song", out err);
            audioPlayer.Volume           = 0.5f;
            audioPlayer.FinishedPlaying += AudioPlayer_FinishedPlaying;
            audioPlayer.Play();

            jacketCarouselPageControl.Pages       = 3;
            jacketCarouselPageControl.CurrentPage = 0;

            var logoVC          = Storyboard.InstantiateViewController("ConsoleLogoAnimationViewController") as ConsoleLogoAnimationViewController;
            var consoleLogoView = logoVC.View;

            logoVC.StartAnimation(ConsoleLogoAnimationViewController.loopNumber);
            consoleLogoView.Frame = new CGRect(0, 0, 309, 48);
            logoView.AddSubview(consoleLogoView);


            var carousel = new iCarousel
            {
                ContentMode            = UIViewContentMode.Left,
                Type                   = iCarouselType.Linear,
                Frame                  = new CGRect(0, 0, 300, 127),
                Bounds                 = new CGRect(0, 0, 300, 127),
                BackgroundColor        = UIColor.Clear,
                CenterItemWhenSelected = true,
                ViewpointOffset        = new CGSize((nfloat)(5), (nfloat)0),
                PagingEnabled          = true,
                DataSource             = new JacketCarouselDataSource(Storyboard, jacketCardViewControllers),
                Delegate               = new JacketCarouselDelegate(jacketCarouselPageControl)
            };

            jacketCarousel.AddSubview(carousel);

            addJacketButton.TouchUpInside += AddJacketButton_TouchUpInside;

            buyJacketButton.TouchUpInside += BuyJacketButton_TouchUpInside;

            searchJacketByIdButton.TouchUpInside += SearchJacketByIdButton_TouchUpInside;

            aboutButton.TouchUpInside += AboutButton_TouchUpInside;

            NavigationController.NavigationBar.Hidden = true;

            remainingJacketView.Layer.CornerRadius = 10;
            remainingJacketView.ClipsToBounds      = true;

            loginSignupView.Layer.CornerRadius = 10;
            loginSignupView.ClipsToBounds      = true;
        }