Author: gert
Date: 2007-07-31 16:37:59 -0400 (Tue, 31 Jul 2007)
New Revision: 83144

Added:
   trunk/gert/interactive/bug82202/
   trunk/gert/interactive/bug82202/MainForm.cs
   trunk/gert/interactive/bug82202/default.build
   trunk/gert/interactive/bug82219/
   trunk/gert/interactive/bug82219/MainForm.cs
   trunk/gert/interactive/bug82219/default.build
Modified:
   trunk/gert/interactive/bug82234/MainForm.cs
   trunk/gert/interactive/known_issues
Log:
Added test for bug #82202 and bug #82219.


Added: trunk/gert/interactive/bug82202/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug82202/MainForm.cs 2007-07-31 20:31:02 UTC (rev 
83143)
+++ trunk/gert/interactive/bug82202/MainForm.cs 2007-07-31 20:37:59 UTC (rev 
83144)
@@ -0,0 +1,110 @@
+using System;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Globalization;
+using System.Windows.Forms;
+
+class MainForm : Form
+{
+       public MainForm ()
+       {
+               // 
+               // MainForm
+               // 
+               ClientSize = new Size (350, 350);
+               Location = new Point (250, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "bug #82202";
+               Load += new EventHandler (MainForm_Load);
+               Paint += new PaintEventHandler (MainForm_Paint);
+       }
+
+       [STAThread]
+       static void Main ()
+       {
+               Application.Run (new MainForm ());
+       }
+
+       void MainForm_Load (object sender, EventArgs e)
+       {
+               InstructionsForm instructionsForm = new InstructionsForm ();
+               instructionsForm.Show ();
+       }
+
+       void MainForm_Paint (object sender, PaintEventArgs e)
+       {
+               Graphics g = e.Graphics;
+               GraphicsPath path = new GraphicsPath ();
+
+               Rectangle borderect = new Rectangle (49, 49, 252, 252);
+               g.FillRectangle (new SolidBrush (Color.White), borderect);
+
+               int Diameter = 16;
+               Rectangle baserect = new Rectangle (50, 50, 249, 249);
+
+               Rectangle arcrect = new Rectangle (baserect.Location, new Size 
(Diameter, Diameter));
+
+               // handle top left corner
+               path.AddArc (arcrect, 180, 90);
+
+               // handle top right corner
+               arcrect.X = baserect.Right - Diameter;
+               path.AddArc (arcrect, 270, 90);
+
+               // handle baserect right corner
+               arcrect.Y = baserect.Bottom - Diameter;
+               path.AddArc (arcrect, 0, 90);
+
+               // handle bottom left corner
+               arcrect.X = baserect.Left;
+               path.AddArc (arcrect, 90, 90);
+
+               path.CloseFigure ();
+
+               g.DrawPath (Pens.SteelBlue, path);
+       }
+}
+
+public class InstructionsForm : Form
+{
+       public InstructionsForm ()
+       {
+               // 
+               // _tabControl
+               // 
+               _tabControl = new TabControl ();
+               _tabControl.Dock = DockStyle.Fill;
+               Controls.Add (_tabControl);
+               // 
+               // _bugDescriptionText1
+               // 
+               _bugDescriptionText1 = new TextBox ();
+               _bugDescriptionText1.Dock = DockStyle.Fill;
+               _bugDescriptionText1.Multiline = true;
+               _bugDescriptionText1.Text = string.Format 
(CultureInfo.InvariantCulture,
+                       "Expected result on start-up:{0}{0}" +
+                       "1. A white square with a blue rectangle is drawn in 
the center " +
+                       "of the form.{0}{0}" +
+                       "2. The rectange has rounded corners.{0}{0}" +
+                       "3. A one pixel wide \"border\" is drawn around the 
square.",
+                       Environment.NewLine);
+               // 
+               // _tabPage1
+               // 
+               _tabPage1 = new TabPage ();
+               _tabPage1.Text = "#1";
+               _tabPage1.Controls.Add (_bugDescriptionText1);
+               _tabControl.Controls.Add (_tabPage1);
+               // 
+               // InstructionsForm
+               // 
+               ClientSize = new Size (330, 150);
+               Location = new Point (650, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "Instructions - bug #82202";
+       }
+
+       private TextBox _bugDescriptionText1;
+       private TabControl _tabControl;
+       private TabPage _tabPage1;
+}


Property changes on: trunk/gert/interactive/bug82202/MainForm.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/interactive/bug82202/default.build
===================================================================
--- trunk/gert/interactive/bug82202/default.build       2007-07-31 20:31:02 UTC 
(rev 83143)
+++ trunk/gert/interactive/bug82202/default.build       2007-07-31 20:37:59 UTC 
(rev 83144)
@@ -0,0 +1,62 @@
+<project name="bug82202" default="rebuild">
+       <target name="mono-1.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,ONLY_1_1,MONO" />
+       </target>
+
+       <target name="mono-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0,MONO" />
+       </target>
+
+       <target name="net-1.1">
+               <property name="csc.defines" value="NET_1_0,NET_1_1,ONLY_1_1" />
+       </target>
+
+       <target name="net-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0" />
+       </target>
+
+       <property name="frameworks" value="mono-1.0,mono-2.0,net-1.1,net-2.0" />
+
+       <target name="clean">
+               <delete>
+                       <fileset>
+                               <include name="out" />
+                               <include name="test.exe" />
+                       </fileset>
+               </delete>
+       </target>
+
+       <target name="build">
+               <property name="original.targetframework" 
value="${nant.settings.currentframework}" />
+
+               <foreach property="framework" item="String" in="${frameworks}" 
delim=",">
+                       <if test="${framework::exists(framework)}">
+                               <property name="nant.settings.currentframework" 
value="${framework}" />
+                               <call 
target="${nant.settings.currentframework}" />
+                               <call target="run" />
+                               <call target="clean" />
+                       </if>
+               </foreach>
+
+               <property name="nant.settings.currentframework" 
value="${original.targetframework}" />
+       </target>
+
+       <target name="compile">
+               <csc target="winexe" define="${csc.defines}" output="test.exe" 
warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="MainForm.cs" />
+                       </sources>
+                       <references>
+                               <include name="System.Drawing.dll" />
+                               <include name="System.Windows.Forms.dll" />
+                       </references>
+               </csc>
+       </target>
+
+       <target name="run" depends="compile">
+               <exec program="test.exe" managed="true" output="out" />
+               <fail if="${file::exists('out')}" />
+       </target>
+
+       <target name="rebuild" depends="clean, build" />
+</project>


Property changes on: trunk/gert/interactive/bug82202/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/interactive/bug82219/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug82219/MainForm.cs 2007-07-31 20:31:02 UTC (rev 
83143)
+++ trunk/gert/interactive/bug82219/MainForm.cs 2007-07-31 20:37:59 UTC (rev 
83144)
@@ -0,0 +1,96 @@
+using System;
+using System.Drawing;
+using System.Globalization;
+using System.Windows.Forms;
+
+class MainForm : Form
+{
+       public MainForm ()
+       {
+               // 
+               // _dataGridView
+               // 
+               _dataGridView = new DataGridView ();
+               _dataGridView.Dock = DockStyle.Fill;
+               Controls.Add (_dataGridView);
+               // 
+               // _nameTextBoxColumn
+               // 
+               _nameTextBoxColumn = new DataGridViewTextBoxColumn ();
+               _nameTextBoxColumn.HeaderText = "Name";
+               _dataGridView.Columns.Add (_nameTextBoxColumn);
+               // 
+               // _firstNameTextBoxColumn
+               // 
+               _firstNameTextBoxColumn = new DataGridViewTextBoxColumn ();
+               _firstNameTextBoxColumn.AutoSizeMode = 
DataGridViewAutoSizeColumnMode.Fill;
+               _firstNameTextBoxColumn.HeaderText = "First Name";
+               _dataGridView.Columns.Add (_firstNameTextBoxColumn);
+               // 
+               // MainForm
+               // 
+               ClientSize = new Size (300, 190);
+               Location = new Point (250, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "bug #82219";
+               Load += new EventHandler (MainForm_Load);
+       }
+
+       [STAThread]
+       static void Main ()
+       {
+               Application.Run (new MainForm ());
+       }
+
+       void MainForm_Load (object sender, EventArgs e)
+       {
+               InstructionsForm instructionsForm = new InstructionsForm ();
+               instructionsForm.Show ();
+       }
+
+       private DataGridView _dataGridView;
+       private DataGridViewTextBoxColumn _nameTextBoxColumn;
+       private DataGridViewTextBoxColumn _firstNameTextBoxColumn;
+}
+
+public class InstructionsForm : Form
+{
+       public InstructionsForm ()
+       {
+               // 
+               // _tabControl
+               // 
+               _tabControl = new TabControl ();
+               _tabControl.Dock = DockStyle.Fill;
+               Controls.Add (_tabControl);
+               // 
+               // _bugDescriptionText1
+               // 
+               _bugDescriptionText1 = new TextBox ();
+               _bugDescriptionText1.Dock = DockStyle.Fill;
+               _bugDescriptionText1.Multiline = true;
+               _bugDescriptionText1.Text = string.Format 
(CultureInfo.InvariantCulture,
+                       "Expected result on start-up:{0}{0}" +
+                       "1. The First Name column fills the remainder of the 
display area " +
+                       "of the DataGridView.",
+                       Environment.NewLine);
+               // 
+               // _tabPage1
+               // 
+               _tabPage1 = new TabPage ();
+               _tabPage1.Text = "#1";
+               _tabPage1.Controls.Add (_bugDescriptionText1);
+               _tabControl.Controls.Add (_tabPage1);
+               // 
+               // InstructionsForm
+               // 
+               ClientSize = new Size (320, 110);
+               Location = new Point (600, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "Instructions - bug #82219";
+       }
+
+       private TextBox _bugDescriptionText1;
+       private TabControl _tabControl;
+       private TabPage _tabPage1;
+}


Property changes on: trunk/gert/interactive/bug82219/MainForm.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/interactive/bug82219/default.build
===================================================================
--- trunk/gert/interactive/bug82219/default.build       2007-07-31 20:31:02 UTC 
(rev 83143)
+++ trunk/gert/interactive/bug82219/default.build       2007-07-31 20:37:59 UTC 
(rev 83144)
@@ -0,0 +1,54 @@
+<project name="bug82219" default="rebuild">
+       <target name="mono-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0,MONO" />
+       </target>
+
+       <target name="net-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0" />
+       </target>
+
+       <property name="frameworks" value="mono-2.0,net-2.0" />
+
+       <target name="clean">
+               <delete>
+                       <fileset>
+                               <include name="out" />
+                               <include name="test.exe" />
+                       </fileset>
+               </delete>
+       </target>
+
+       <target name="build">
+               <property name="original.targetframework" 
value="${nant.settings.currentframework}" />
+
+               <foreach property="framework" item="String" in="${frameworks}" 
delim=",">
+                       <if test="${framework::exists(framework)}">
+                               <property name="nant.settings.currentframework" 
value="${framework}" />
+                               <call 
target="${nant.settings.currentframework}" />
+                               <call target="run" />
+                               <call target="clean" />
+                       </if>
+               </foreach>
+
+               <property name="nant.settings.currentframework" 
value="${original.targetframework}" />
+       </target>
+
+       <target name="compile">
+               <csc target="winexe" define="${csc.defines}" output="test.exe" 
warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="MainForm.cs" />
+                       </sources>
+                       <references>
+                               <include name="System.Drawing.dll" />
+                               <include name="System.Windows.Forms.dll" />
+                       </references>
+               </csc>
+       </target>
+
+       <target name="run" depends="compile">
+               <exec program="test.exe" managed="true" output="out" />
+               <fail if="${file::exists('out')}" />
+       </target>
+
+       <target name="rebuild" depends="clean, build" />
+</project>


Property changes on: trunk/gert/interactive/bug82219/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: trunk/gert/interactive/bug82234/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug82234/MainForm.cs 2007-07-31 20:31:02 UTC (rev 
83143)
+++ trunk/gert/interactive/bug82234/MainForm.cs 2007-07-31 20:37:59 UTC (rev 
83144)
@@ -21,7 +21,7 @@
                // _urlTextBoxColumn
                // 
                _urlTextBoxColumn = new DataGridViewTextBoxColumn ();
-               _urlTextBoxColumn.AutoSizeMode = 
System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+               _urlTextBoxColumn.AutoSizeMode = 
DataGridViewAutoSizeColumnMode.Fill;
                _urlTextBoxColumn.HeaderText = "Source url";
                _dataGridView.Columns.Add (_urlTextBoxColumn);
                // 

Modified: trunk/gert/interactive/known_issues
===================================================================
--- trunk/gert/interactive/known_issues 2007-07-31 20:31:02 UTC (rev 83143)
+++ trunk/gert/interactive/known_issues 2007-07-31 20:37:59 UTC (rev 83144)
@@ -103,3 +103,4 @@
 bug82196/**
 bug82197/**
 bug82210/**
+bug82219/**

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

Reply via email to