2 using System.Collections;
\r
4 namespace Mainsoft.Drawing.Configuration
\r
7 /// Summary description for ResolutionConfiguration.
\r
9 public class ResolutionConfiguration : IComparable
\r
11 string _imageFormat = "";
\r
13 string _xResPath = "";
\r
14 string _yResPath = "";
\r
15 string _unitsTypePath = "";
\r
17 string _xResDefault = "";
\r
18 string _yResDefault = "";
\r
19 string _unitsTypeDefault = "";
\r
21 Hashtable _unitScale;
\r
23 public ResolutionConfiguration(
\r
25 string xresPath, string yresPath, string unitsTypePath,
\r
26 string xresDefault, string yresDefault, string unitsTypeDefault,
\r
27 Hashtable unitScale)
\r
29 _imageFormat = imageFormat;
\r
31 _xResPath = xresPath;
\r
32 _yResPath = yresPath;
\r
33 _unitsTypePath = unitsTypePath;
\r
35 _xResDefault = xresDefault;
\r
36 _yResDefault = yresDefault;
\r
37 _unitsTypeDefault = unitsTypeDefault;
\r
39 _unitScale = unitScale;
\r
42 public string XResPath {
\r
43 get { return _xResPath; }
\r
45 public string XResDefault {
\r
46 get { return _xResDefault; }
\r
48 public string YResPath {
\r
49 get { return _yResPath; }
\r
51 public string YResDefault {
\r
52 get { return _yResDefault; }
\r
54 public string UnitsTypePath {
\r
55 get { return _unitsTypePath; }
\r
57 public string UnitsTypeDefault {
\r
58 get { return _unitsTypeDefault; }
\r
60 public string ImageFormat {
\r
61 get { return _imageFormat; }
\r
63 public Hashtable UnitsScale {
\r
64 get { return _unitScale; }
\r
67 #region IComparable Members
\r
69 public int CompareTo(object obj) {
\r
70 return _imageFormat.CompareTo(((ResolutionConfiguration)obj).ImageFormat);
\r