コード例 #1
0
        public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
        {
            tableView.DeselectRow(indexPath, true);
            if (indexPath.Section != 1)
            {
                return;
            }

            if (indexPath.Row == 0)
            {
                Data.Name          = textBoxes["Name"].Text;
                Data.Industry      = textBoxes["Industry"].Text;
                Data.Phone         = textBoxes["Phone"].Text;
                Data.Website       = textBoxes["Website"].Text;
                Data.AccountNumber = textBoxes["Account"].Text;
                var assignedText = textBoxes ["SLA Expiry"].Text;
//				if (!String.IsNullOrWhiteSpace (assignedText))
//					Data.SLAExpiration = DateTime.Parse (assignedText, CultureInfo.CurrentCulture, DateTimeStyles.AssumeLocal);
//				else
//					Data.SLAExpiration = null;

                controller.SendUpdate();
            }
            else
            {
                controller.SendCanceled();
            }
        }