jmawebtech

jmastyle

Oct 17th, 2012
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.49 KB | None | 0 0
  1. JMAStyledStringElement jma = new JMAStyledStringElement (pro.Name, String.Format ("{0:C}", pro.Price));
  2.                         jma.Accessory = UITableViewCellAccessory.DisclosureIndicator;
  3.                         jma.Product = pro;
  4.                         jma.LineBreakMode = UILineBreakMode.TailTruncation;
  5.                         jma.JMAUITableViewStyle = UITableViewCellStyle.Subtitle;
  6.                         jma.Tapped += delegate() {
  7.                             CurrentProduct = pro;
  8.                             DetailDataMode = DetailDataMode.Add;
  9.                             DetailsViewController ();
  10.                         };
  11.                    
  12.                         sect.Add (jma);
Advertisement
Add Comment
Please, Sign In to add comment