Esempio n. 1
0
 public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
 {
     if (indexPath.Row == 0)
     {
         if (DataLayer.Instance.GetLocalBoxesSync().Count == 0)
         {
             _parent._home.ShowIntroductionView();
         }
         else
         {
             _parent._home.ShowAddSitesView();
         }
     }
     else if (indexPath.Row == 1)
     {
         Waardes.Instance.GeselecteerdeBox = -1;
         _parent.UpdateBalkKleur(null);
         _parent.SetLogo(null);
         _parent._home.UpdateDetail(new AboutViewController(), true);
     }
 }
Esempio n. 2
0
            public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
            {
                if (_presentingDetails)
                {
                    ResetCells(tableView);
                }
                else
                {
                    try
                    {
                        SslValidator.CertificateErrorRaised = false;

                        Waardes.Instance.GeselecteerdeBox = boxList[indexPath.Row].Id;

                        //Reset certificate validation check to default behavior
                        //ServicePointManager.ServerCertificateValidationCallback = null;

//						if(boxList[indexPath.Row].OriginalSslCertificate != null){ //Selected localbox does have a ssl certificate
//							//Set ssl validator for selected LocalBox
//							SslValidator sslValidator = new SslValidator ();
//							ServicePointManager.ServerCertificateValidationCallback = sslValidator.ValidateServerCertficate;
//						}

                        if (boxList[indexPath.Row].BackColor.StartsWith("#"))
                        {
                            _parent.UpdateBalkKleur(boxList[indexPath.Row].BackColor);
                        }
                        //_parent.SetLogo(boxList[indexPath.Row].LogoUrl);
                        _parent._home.UpdateDetail(new NodeViewController(boxList[indexPath.Row].BackColor, _parent._home), true);
                    } catch (Exception ex) {
                        Insights.Report(ex);
                        DialogHelper.ShowErrorDialog("Fout", "Er is een fout opgetreden bij het openen van de Pleiobox.\n" +
                                                     "Probeer het a.u.b. nogmaals.");
                    }
                }
            }