Author: gert
Date: 2007-06-01 13:18:42 -0400 (Fri, 01 Jun 2007)
New Revision: 78437

Modified:
   trunk/gert/interactive/bug80021/MainForm.cs
Log:
Improve test.


Modified: trunk/gert/interactive/bug80021/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug80021/MainForm.cs 2007-06-01 17:02:00 UTC (rev 
78436)
+++ trunk/gert/interactive/bug80021/MainForm.cs 2007-06-01 17:18:42 UTC (rev 
78437)
@@ -8,6 +8,11 @@
        public MainForm ()
        {
                // 
+               // _statusBar
+               // 
+               _statusBar = new StatusBar ();
+               Controls.Add (_statusBar);
+               // 
                // _tabControl
                // 
                _tabControl = new TabControl ();
@@ -23,7 +28,7 @@
                        "Steps to execute:{0}{0}" +
                        "1. Attempt to make this form larger in size.{0}{0}" +
                        "Expected result:{0}{0}" +
-                       "1. The form cannot be resized to more than 400 by 500 
pixels.",
+                       "1. The form cannot be resized to more than 500 by 600 
pixels.",
                        Environment.NewLine);
                // 
                // _tabPage1
@@ -81,10 +86,12 @@
                // 
                // MainForm
                //
-               ClientSize = new Size (350, 250);
-               MaximumSize = new Size (400, 500);
+               ClientSize = new Size (350, 320);
+               MaximumSize = new Size (500, 600);
                StartPosition = FormStartPosition.CenterScreen;
                Text = "bug #80021";
+               Load += new EventHandler (MainForm_Load);
+               Resize += new EventHandler (MainForm_Resize);
        }
 
        [STAThread]
@@ -93,6 +100,17 @@
                Application.Run (new MainForm ());
        }
 
+       void MainForm_Load (object sender, EventArgs e)
+       {
+               _statusBar.Text = this.Size.ToString ();
+       }
+
+       void MainForm_Resize (object sender, EventArgs e)
+       {
+               _statusBar.Text = this.Size.ToString ();
+       }
+
+       private StatusBar _statusBar;
        private TextBox _bugDescriptionText1;
        private TextBox _bugDescriptionText2;
        private TextBox _bugDescriptionText3;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to