ResolutionConfiguration.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. using System;
  2. using System.Collections;
  3. namespace Mainsoft.Drawing.Configuration
  4. {
  5. /// <summary>
  6. /// Summary description for ResolutionConfiguration.
  7. /// </summary>
  8. public class ResolutionConfiguration : IComparable
  9. {
  10. string _imageFormat = "";
  11. string _xResPath = "";
  12. string _yResPath = "";
  13. string _unitsTypePath = "";
  14. string _xResDefault = "";
  15. string _yResDefault = "";
  16. string _unitsTypeDefault = "";
  17. Hashtable _unitScale;
  18. public ResolutionConfiguration(
  19. string imageFormat,
  20. string xresPath, string yresPath, string unitsTypePath,
  21. string xresDefault, string yresDefault, string unitsTypeDefault,
  22. Hashtable unitScale)
  23. {
  24. _imageFormat = imageFormat;
  25. _xResPath = xresPath;
  26. _yResPath = yresPath;
  27. _unitsTypePath = unitsTypePath;
  28. _xResDefault = xresDefault;
  29. _yResDefault = yresDefault;
  30. _unitsTypeDefault = unitsTypeDefault;
  31. _unitScale = unitScale;
  32. }
  33. public string XResPath {
  34. get { return _xResPath; }
  35. }
  36. public string XResDefault {
  37. get { return _xResDefault; }
  38. }
  39. public string YResPath {
  40. get { return _yResPath; }
  41. }
  42. public string YResDefault {
  43. get { return _yResDefault; }
  44. }
  45. public string UnitsTypePath {
  46. get { return _unitsTypePath; }
  47. }
  48. public string UnitsTypeDefault {
  49. get { return _unitsTypeDefault; }
  50. }
  51. public string ImageFormat {
  52. get { return _imageFormat; }
  53. }
  54. public Hashtable UnitsScale {
  55. get { return _unitScale; }
  56. }
  57. #region IComparable Members
  58. public int CompareTo(object obj) {
  59. return _imageFormat.CompareTo(((ResolutionConfiguration)obj).ImageFormat);
  60. }
  61. #endregion
  62. }
  63. }