public FileElement(string name, string key, GistEditModel.File file) : base(name, String.Empty, UITableViewCellStyle.Subtitle) { File = file; Key = key; if (file.Content != null) { Value = System.Text.Encoding.UTF8.GetByteCount(file.Content) + " bytes"; } }
public FileElement(string name, string key, GistEditModel.File file) : base(name, String.Empty, UITableViewCellStyle.Subtitle) { File = file; Key = key; Accessory = UITableViewCellAccessory.DisclosureIndicator; if (file.Content != null) Value = System.Text.ASCIIEncoding.UTF8.GetByteCount(file.Content) + " bytes"; }