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