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