- public static List<DocumentType> GetTypes()
- {
- List<DocumentType> typeList = new List<DocumentType>();
- DocumentType t1 = new DocumentType("text/html", "html", "code-small.jpg");
- DocumentType t2 = new DocumentType("text/html", "htm", "code-small.jpg");
- DocumentType t3 = new DocumentType("text/plain", "txt", "notepad-small.jpg");
- DocumentType t4 = new DocumentType("text/rtf", "rtf", "notepad-small.jpg");
- DocumentType t5 = new DocumentType("text/tab-separated-values", "tsv", "notepad-small.jpg");
- DocumentType t6 = new DocumentType("text/tab-separated-values", "csv", "notepad-small.jpg");
- DocumentType t7 = new DocumentType("text/css", "css", "code-small.jpg");
- DocumentType t8 = new DocumentType("application/msword", "doc", "word-small.jpg");
- DocumentType t9 = new DocumentType("application/msword", "docx", "word-small.jpg");
- DocumentType t10 = new DocumentType("application/msword", "dot", "word-small.jpg");
- DocumentType t11 = new DocumentType("application/pdf", "pdf", "pdf-small.jpg");
- DocumentType t12 = new DocumentType("application/zip", "zip", "zip-small.jpg");
- DocumentType t13 = new DocumentType("application/mspowerpoint", "ppt", "powerpoint-small.jpg");
- DocumentType t14 = new DocumentType("application/mspowerpoint", "ppz", "powerpoint-small.jpg");
- DocumentType t15 = new DocumentType("application/msexcel", "xls", "excel-small.jpg");
- DocumentType t16 = new DocumentType("application/msexcel", "xlt", "excel-small.jpg");
- DocumentType t17 = new DocumentType("application/msaccess", "mdb", "access-small.jpg");
- DocumentType t18 = new DocumentType("application/msaccess", "mde", "access-small.jpg");
- DocumentType t19 = new DocumentType("text/xml", "xml", "code-small.jpg");
- DocumentType t20 = new DocumentType("text/xml", "xsl", "code-small.jpg");
- DocumentType t21 = new DocumentType("text/xml", "xslt", "code-small.jpg");
- DocumentType t22 = new DocumentType("image/gif", "gif", "unknown-small.jpg");
- DocumentType t23 = new DocumentType("image/jpeg", "jpe", "unknown-small.jpg");
- DocumentType t24 = new DocumentType("image/jpeg", "jpg", "unknown-small.jpg");
- DocumentType t25 = new DocumentType("image/jpeg", "jpeg", "unknown-small.jpg");
- DocumentType t26 = new DocumentType("image/pjpeg", "jpeg", "unknown-small.jpg");
- DocumentType t27 = new DocumentType("image/x-png", "png", "unknown-small.jpg");
- DocumentType t28 = new DocumentType("image/svg+xml", "svg", "unknown-small.jpg");
- DocumentType t29 = new DocumentType("image/tif", "tif", "unknown-small.jpg");
- DocumentType t30 = new DocumentType("image/tiff", "tiff", "unknown-small.jpg");
- typeList.Add(t1);
- typeList.Add(t2);
- typeList.Add(t3);
- typeList.Add(t4);
- typeList.Add(t5);
- typeList.Add(t6);
- typeList.Add(t7);
- typeList.Add(t8);
- typeList.Add(t9);
- typeList.Add(t10);
- typeList.Add(t11);
- typeList.Add(t12);
- typeList.Add(t13);
- typeList.Add(t14);
- typeList.Add(t15);
- typeList.Add(t16);
- typeList.Add(t17);
- typeList.Add(t18);
- typeList.Add(t19);
- typeList.Add(t20);
- typeList.Add(t21);
- typeList.Add(t22);
- typeList.Add(t23);
- typeList.Add(t24);
- typeList.Add(t25);
- typeList.Add(t26);
- typeList.Add(t27);
- typeList.Add(t28);
- typeList.Add(t29);
- typeList.Add(t30);
- return typeList;
- }