Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 2nd, 2012  |  syntax: None  |  size: 3.87 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public static List<DocumentType> GetTypes()
  2.         {
  3.             List<DocumentType> typeList = new List<DocumentType>();
  4.  
  5.             DocumentType t1 = new DocumentType("text/html", "html", "code-small.jpg");
  6.             DocumentType t2 = new DocumentType("text/html", "htm", "code-small.jpg");
  7.             DocumentType t3 = new DocumentType("text/plain", "txt", "notepad-small.jpg");
  8.             DocumentType t4 = new DocumentType("text/rtf", "rtf", "notepad-small.jpg");
  9.             DocumentType t5 = new DocumentType("text/tab-separated-values", "tsv", "notepad-small.jpg");
  10.             DocumentType t6 = new DocumentType("text/tab-separated-values", "csv", "notepad-small.jpg");
  11.             DocumentType t7 = new DocumentType("text/css", "css", "code-small.jpg");
  12.             DocumentType t8 = new DocumentType("application/msword", "doc", "word-small.jpg");
  13.             DocumentType t9 = new DocumentType("application/msword", "docx", "word-small.jpg");
  14.             DocumentType t10 = new DocumentType("application/msword", "dot", "word-small.jpg");
  15.             DocumentType t11 = new DocumentType("application/pdf", "pdf", "pdf-small.jpg");
  16.             DocumentType t12 = new DocumentType("application/zip", "zip", "zip-small.jpg");
  17.             DocumentType t13 = new DocumentType("application/mspowerpoint", "ppt", "powerpoint-small.jpg");
  18.             DocumentType t14 = new DocumentType("application/mspowerpoint", "ppz", "powerpoint-small.jpg");
  19.             DocumentType t15 = new DocumentType("application/msexcel", "xls", "excel-small.jpg");
  20.             DocumentType t16 = new DocumentType("application/msexcel", "xlt", "excel-small.jpg");
  21.             DocumentType t17 = new DocumentType("application/msaccess", "mdb", "access-small.jpg");
  22.             DocumentType t18 = new DocumentType("application/msaccess", "mde", "access-small.jpg");
  23.             DocumentType t19 = new DocumentType("text/xml", "xml", "code-small.jpg");
  24.             DocumentType t20 = new DocumentType("text/xml", "xsl", "code-small.jpg");
  25.             DocumentType t21 = new DocumentType("text/xml", "xslt", "code-small.jpg");
  26.             DocumentType t22 = new DocumentType("image/gif", "gif", "unknown-small.jpg");
  27.             DocumentType t23 = new DocumentType("image/jpeg", "jpe", "unknown-small.jpg");
  28.             DocumentType t24 = new DocumentType("image/jpeg", "jpg", "unknown-small.jpg");
  29.             DocumentType t25 = new DocumentType("image/jpeg", "jpeg", "unknown-small.jpg");
  30.             DocumentType t26 = new DocumentType("image/pjpeg", "jpeg", "unknown-small.jpg");
  31.             DocumentType t27 = new DocumentType("image/x-png", "png", "unknown-small.jpg");
  32.             DocumentType t28 = new DocumentType("image/svg+xml", "svg", "unknown-small.jpg");
  33.             DocumentType t29 = new DocumentType("image/tif", "tif", "unknown-small.jpg");
  34.             DocumentType t30 = new DocumentType("image/tiff", "tiff", "unknown-small.jpg");
  35.  
  36.             typeList.Add(t1);
  37.             typeList.Add(t2);
  38.             typeList.Add(t3);
  39.             typeList.Add(t4);
  40.             typeList.Add(t5);
  41.             typeList.Add(t6);
  42.             typeList.Add(t7);
  43.             typeList.Add(t8);
  44.             typeList.Add(t9);
  45.             typeList.Add(t10);
  46.             typeList.Add(t11);
  47.             typeList.Add(t12);
  48.             typeList.Add(t13);
  49.             typeList.Add(t14);
  50.             typeList.Add(t15);
  51.             typeList.Add(t16);
  52.             typeList.Add(t17);
  53.             typeList.Add(t18);
  54.             typeList.Add(t19);
  55.             typeList.Add(t20);
  56.             typeList.Add(t21);
  57.             typeList.Add(t22);
  58.             typeList.Add(t23);
  59.             typeList.Add(t24);
  60.             typeList.Add(t25);
  61.             typeList.Add(t26);
  62.             typeList.Add(t27);
  63.             typeList.Add(t28);
  64.             typeList.Add(t29);
  65.             typeList.Add(t30);
  66.  
  67.             return typeList;
  68.         }