Author: pbartok
Date: 2005-05-23 16:56:20 -0400 (Mon, 23 May 2005)
New Revision: 44917
Added:
trunk/winforms/hello/
trunk/winforms/hello/Makefile
trunk/winforms/hello/swf-hello.cs
Log:
Simple hello world app for straight go/nogo tests
Added: trunk/winforms/hello/Makefile
===================================================================
--- trunk/winforms/hello/Makefile 2005-05-23 20:50:25 UTC (rev 44916)
+++ trunk/winforms/hello/Makefile 2005-05-23 20:56:20 UTC (rev 44917)
@@ -0,0 +1,7 @@
+all: mono
+
+mono: swf-hello.cs
+ mcs swf-hello.cs /r:System.Windows.Forms.dll /r:System.Drawing.dll
+
+clean:
+ rm swf-hello.exe -r -f
Added: trunk/winforms/hello/swf-hello.cs
===================================================================
--- trunk/winforms/hello/swf-hello.cs 2005-05-23 20:50:25 UTC (rev 44916)
+++ trunk/winforms/hello/swf-hello.cs 2005-05-23 20:56:20 UTC (rev 44917)
@@ -0,0 +1,34 @@
+//
+// Hello, SWF!
+//
+//
+
+
+// This application will produce a window 250x250 pixels in size
+// It will display "My first System.Windows.Forms application(TM)" centered in
it
+
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+
+namespace MWFTestApplication {
+ class MainWindow : System.Windows.Forms.Form {
+ public MainWindow() {
+ Label label;
+
+ ClientSize = new System.Drawing.Size (250, 250);
+
+ label = new Label();
+ label.Text = "My first System.Windows.Forms
application(TM)";
+ label.Dock = DockStyle.Fill;
+ label.TextAlign = ContentAlignment.MiddleCenter;
+ this.Controls.Add(label);
+ Text = "Hello, System.Windows.Forms";
+
+ }
+
+ public static void Main(string[] args) {
+ Application.Run(new MainWindow());
+ }
+ }
+}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches