DataFile.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. namespace InABox.Core
  2. {
  3. //// [JsonConverter(typeof(DataFileJsonConverter))]
  4. //public abstract class DataFile
  5. //{
  6. // public DataFile() : this("", new byte[] { })
  7. // {
  8. // }
  9. // public DataFile(String filename, byte[] data)
  10. // {
  11. // FileName = filename;
  12. // Data = data;
  13. // }
  14. // public override string ToString()
  15. // {
  16. // return String.IsNullOrEmpty(FileName) ? "" : FileName.ToString();
  17. // }
  18. // [NullEditor]
  19. // public String FileName { get; set; }
  20. // [NullEditor]
  21. // public byte[] Data { get; set; }
  22. // public abstract String Filter();
  23. //}
  24. //public class ImageDataFile : DataFile
  25. //{
  26. // public override string Filter()
  27. // {
  28. // return "Image Files (*.bmp;*.jpg;*.png)|*.bmp;*.jpg;*.jpeg;*.png";
  29. // }
  30. //}
  31. //public class MiscellaneousDataFile : DataFile
  32. //{
  33. // public override string Filter()
  34. // {
  35. // return "All Files (*.*)|*.*";
  36. // }
  37. //}
  38. //public class PDFDataFile : DataFile
  39. //{
  40. // public override string Filter()
  41. // {
  42. // return "PDF Files (*.pdf)|*.pdf";
  43. // }
  44. //}
  45. }