コード例 #1
0
        public CustomerCell (Customer customer, string reuseIdentifier) : base(UITableViewCellStyle.Default, reuseIdentifier)
        {
            this.Customer = customer;
            
            _nameLabel = new UILabel ();
            _noteLabel = new UILabel ();
            _newCustomerIcon = new UIImageView ();
            
            // uncomment to highlite how content view resizes when toggling edit mode
//            _nameLabel.BackgroundColor = UIColor.Yellow;
//            _nameLabel.TextColor = UIColor.Black;
//            _noteLabel.BackgroundColor = UIColor.Green;
//            _noteLabel.TextColor = UIColor.Black;
            
            _noteFont = UIFont.ItalicSystemFontOfSize(12.0f);
            
            this.ContentView.AddSubview (_nameLabel);
            this.ContentView.AddSubview (_noteLabel);
            this.ContentView.AddSubview (_newCustomerIcon);
        }
 public CustomerDetailViewController (Customer c) : base("CustomerDetailViewController", null)
 {
     Initialize ();
     
     _customer = c;
 }