Ejemplo n.º 1
0
        public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender)
        {
            switch (segue.Identifier)
            {
            case "WebsiteSegue":
                WebViewController.SetWebViewVariables(game, "Website");
                break;

            case "TrailerSegue":
                WebViewController.SetWebViewVariables(game, "Trailer");
                break;

            case "OrderSegue":
                WebViewController.SetWebViewVariables(game, "Order");
                break;

            case "GameSummarySegue":
                SummaryViewController.SetSummary(game, DetailsCover.Image);
                break;

            case "MainGameSegue":
                _coverImage = null;
                GameDetailsTableView.SetParentItemHeaderInfo(parentItem);
                break;

            case "Screenshot1Segue":
                ScreenshotViewController.SetURL(0, game.screenshots);
                UIApplication.SharedApplication.SetStatusBarHidden(true, UIStatusBarAnimation.Fade);
                break;

            case "Screenshot2Segue":
                ScreenshotViewController.SetURL(1, game.screenshots);
                UIApplication.SharedApplication.SetStatusBarHidden(true, UIStatusBarAnimation.Fade);
                break;

            case "Screenshot3Segue":
                ScreenshotViewController.SetURL(2, game.screenshots);
                UIApplication.SharedApplication.SetStatusBarHidden(true, UIStatusBarAnimation.Fade);
                break;

            case "Screenshot4Segue":
                ScreenshotViewController.SetURL(3, game.screenshots);
                UIApplication.SharedApplication.SetStatusBarHidden(true, UIStatusBarAnimation.Fade);
                break;

            case "Screenshot5Segue":
                ScreenshotViewController.SetURL(4, game.screenshots);
                UIApplication.SharedApplication.SetStatusBarHidden(true, UIStatusBarAnimation.Fade);
                break;

            case "ReminderSegue":
                ReminderTableViewController.SetMainItemHeaderInfo(game);
                UIApplication.SharedApplication.SetStatusBarHidden(true, UIStatusBarAnimation.Fade);
                break;
            }
        }
Ejemplo n.º 2
0
 public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender)
 {
     if (segue.Identifier.Equals("HomeSegue"))
     {
         var row  = TableView.IndexPathForSelectedRow;
         var keys = parsedHomeJson.Keys.ToArray();
         GameDetailsTableView.SetMainItemHeaderInfo(parsedHomeJson[keys[row.Section]][row.Row],
                                                    TableView.CellAt(row).ImageView.Image);
     }
 }