Esempio n. 1
0
 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";
     }
 }
Esempio n. 2
0
            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";
            }