Explorar el Código

2003-07-17 Andreas Nahr <[email protected]>

	* PrinterResolution.cs: Fixed signature, implemented, restyled, removed non-CLS compliant members

svn path=/trunk/mcs/; revision=16328
Andreas N hace 22 años
padre
commit
b38dfba078

+ 37 - 26
mcs/class/System.Drawing/System.Drawing.Printing/PrinterResolution.cs

@@ -1,40 +1,51 @@
 //
-// System.Drawing.PrinterResolution.cs
+// System.Drawing.Printing.PrinterResolution.cs
 //
 // Author:
-//   Dennis Hayes ([email protected])
+//   Dennis Hayes ([email protected])
+//   Andreas Nahr ([email protected])
 //
-// (C) 2002 Ximian, Inc
+// (C) 2002 Ximian, Inc
+// (C) 2003 Andreas Nahr
 //
 using System;
 
-namespace System.Drawing.Printing {
-	/// <summary>
-	/// Summary description for PrinterResolution.
-	/// </summary>
-	public class PrinterResolution {
-		public PrinterResolutionKind kind;
-		public int x;
-		public int y;
-		public PrinterResolution(){
-			x = -1;
-			y = -1;
-		}
-		public int X{
-			get{
+namespace System.Drawing.Printing 
+{
+
+	public class PrinterResolution 
+	{
+		private PrinterResolutionKind kind;
+		private int x;
+		private int y;
+
+		private PrinterResolution () 
+		{
+		}
+
+		internal PrinterResolution (int x, int y, PrinterResolutionKind kind)
+		{
+			this.x = x;
+			this.y = y;
+			this.kind = kind;
+		}
+
+		public int X {
+			get {
 				return x;
 			}
-		}
-		public int Y{
-			get{
+		}
+
+		public int Y {
+			get {
 				return y;
 			}
-		}
-//		public int Kind{
-//			get{
-//				return kind;
-//			}
-//		}
+		}
 
+		public PrinterResolutionKind Kind {
+			get {
+				return kind;
+			}
+		}
 	}
 }

+ 4 - 0
mcs/class/System.Drawing/System.Drawing.Printing/changelog

@@ -1,3 +1,7 @@
+2003-07-17  Andreas Nahr <[email protected]>
+
+	* PrinterResolution.cs: Fixed signature, implemented, restyled, removed non-CLS compliant members
+
 2002-10-13  DennisHayes <[email protected]>
 	* PrintDocument
 	* Added OriginAtMargin for .NET V 1.1 compatablity.