Author: gert
Date: 2007-07-20 15:40:36 -0400 (Fri, 20 Jul 2007)
New Revision: 82384

Added:
   trunk/gert/interactive/bug81847/
   trunk/gert/interactive/bug81847/MainForm.cs
   trunk/gert/interactive/bug81847/default.build
   trunk/gert/interactive/bug82154/
   trunk/gert/interactive/bug82154/MainForm.cs
   trunk/gert/interactive/bug82154/default.build
Modified:
   trunk/gert/interactive/bug81739/MainForm.cs
   trunk/gert/interactive/bug81739/default.build
   trunk/gert/interactive/bug82081/MainForm.cs
   trunk/gert/interactive/known_issues
Log:
Added test for bug #81847 and #82154.


Modified: trunk/gert/interactive/bug81739/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug81739/MainForm.cs 2007-07-20 19:15:26 UTC (rev 
82383)
+++ trunk/gert/interactive/bug81739/MainForm.cs 2007-07-20 19:40:36 UTC (rev 
82384)
@@ -79,7 +79,7 @@
                        "1. Expand Node0.{0}{0}" +
                        "2. Right-click Node1.{0}{0}" +
                        "Expected result:{0}{0}" +
-                       "1. The following vents have fired:{0}{0}" +
+                       "1. The following events have fired:{0}{0}" +
                        "   TreeView => MouseClick (Left){0}" +
                        "   TreeView => MouseClick (Right)",
                        Environment.NewLine);

Modified: trunk/gert/interactive/bug81739/default.build
===================================================================
--- trunk/gert/interactive/bug81739/default.build       2007-07-20 19:15:26 UTC 
(rev 82383)
+++ trunk/gert/interactive/bug81739/default.build       2007-07-20 19:40:36 UTC 
(rev 82384)
@@ -52,5 +52,3 @@
 
        <target name="rebuild" depends="clean, build" />
 </project>
-
-

Added: trunk/gert/interactive/bug81847/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug81847/MainForm.cs 2007-07-20 19:15:26 UTC (rev 
82383)
+++ trunk/gert/interactive/bug81847/MainForm.cs 2007-07-20 19:40:36 UTC (rev 
82384)
@@ -0,0 +1,322 @@
+using System;
+using System.Drawing;
+using System.Globalization;
+using System.Windows.Forms;
+
+public class MainForm : Form
+{
+       public MainForm ()
+       {
+               _treeView = new TreeView ();
+               _treeView.Dock = DockStyle.Top;
+               _treeView.Height = 80;
+               _treeView.HideSelection = false;
+               _treeView.TabIndex = 0;
+               _treeView.AfterLabelEdit += new NodeLabelEditEventHandler 
(TreeView_AfterLabelEdit);
+               _treeView.BeforeLabelEdit += new NodeLabelEditEventHandler 
(TreeView_BeforeLabelEdit);
+               Controls.Add (_treeView);
+               // 
+               // _labelEditCheckBox
+               // 
+               _labelEditCheckBox = new CheckBox ();
+               _labelEditCheckBox.Checked = _treeView.LabelEdit;
+               _labelEditCheckBox.Location = new Point (8, 105);
+               _labelEditCheckBox.Size = new Size (75, 20);
+               _labelEditCheckBox.Text = "LabelEdit";
+               _labelEditCheckBox.CheckedChanged += new EventHandler 
(LabelEditCheckBox_CheckedChanged);
+               Controls.Add (_labelEditCheckBox);
+               // 
+               // _cancelGroupBox
+               // 
+               _cancelGroupBox = new GroupBox ();
+               _cancelGroupBox.Location = new Point (85, 85);
+               _cancelGroupBox.Size = new Size (115, 60);
+               _cancelGroupBox.Text = "Cancel";
+               Controls.Add (_cancelGroupBox);
+               // 
+               // _beforeCancelCheckBox
+               // 
+               _beforeCancelCheckBox = new CheckBox ();
+               _beforeCancelCheckBox.Location = new Point (8, 16);
+               _beforeCancelCheckBox.Size = new Size (100, 20);
+               _beforeCancelCheckBox.Text = "Before";
+               _cancelGroupBox.Controls.Add (_beforeCancelCheckBox);
+               // 
+               // _afterCancelCheckBox
+               // 
+               _afterCancelCheckBox = new CheckBox ();
+               _afterCancelCheckBox.Location = new Point (8, 35);
+               _afterCancelCheckBox.Size = new Size (100, 20);
+               _afterCancelCheckBox.Text = "After";
+               _cancelGroupBox.Controls.Add (_afterCancelCheckBox);
+               // 
+               // _resetButton
+               // 
+               _resetButton = new Button ();
+               _resetButton.Location = new Point (215, 105);
+               _resetButton.Size = new Size (70, 20);
+               _resetButton.Text = "Reset";
+               _resetButton.Click += new EventHandler (ResetButton_Click);
+               Controls.Add (_resetButton);
+               // 
+               // _eventsText
+               // 
+               _eventsText = new TextBox ();
+               _eventsText.Dock = DockStyle.Bottom;
+               _eventsText.Height = 135;
+               _eventsText.Multiline = true;
+               Controls.Add (_eventsText);
+               // 
+               // MainForm
+               // 
+               ClientSize = new Size (292, 290);
+               Location = new Point (250, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "bug #81847";
+               Load += new EventHandler (MainForm_Load);
+       }
+
+       [STAThread]
+       static void Main ()
+       {
+               Application.Run (new MainForm ());
+       }
+
+       void MainForm_Load (object sender, EventArgs e)
+       {
+               Init ();
+               InstructionsForm instructionsForm = new InstructionsForm ();
+               instructionsForm.Show ();
+       }
+
+       void TreeView_BeforeLabelEdit (object sender, NodeLabelEditEventArgs e)
+       {
+               string newLabel = e.Label == null ? "null" : e.Label;
+               _eventsText.AppendText ("TreeView => BeforeLabelEdit (" + 
e.Node.Text +
+                       " => " + newLabel + ")" + Environment.NewLine);
+               e.CancelEdit = _beforeCancelCheckBox.Checked;
+       }
+
+       void TreeView_AfterLabelEdit (object sender, NodeLabelEditEventArgs e)
+       {
+               string newLabel = e.Label == null ? "null" : e.Label;
+               _eventsText.AppendText ("TreeView => AfterLabelEdit (" + 
e.Node.Text +
+                       " => " + newLabel + ")" + Environment.NewLine);
+               e.CancelEdit = _afterCancelCheckBox.Checked;
+       }
+
+       void LabelEditCheckBox_CheckedChanged (object sender, EventArgs e)
+       {
+               _treeView.LabelEdit = _labelEditCheckBox.Checked;
+       }
+
+       void ResetButton_Click (object sender, EventArgs e)
+       {
+               _treeView.Nodes.Clear ();
+               _labelEditCheckBox.Checked = false;
+               _beforeCancelCheckBox.Checked = false;
+               _afterCancelCheckBox.Checked = false;
+               _eventsText.Text = string.Empty;
+               Init ();
+       }
+
+       void Init ()
+       {
+               _treeView.Nodes.Add (new TreeNode ("Node0"));
+               _treeView.Nodes.Add (new TreeNode ("Node1"));
+       }
+
+       private TreeView _treeView;
+       private CheckBox _labelEditCheckBox;
+       private GroupBox _cancelGroupBox;
+       private CheckBox _beforeCancelCheckBox;
+       private CheckBox _afterCancelCheckBox;
+       private Button _resetButton;
+       private TextBox _eventsText;
+}
+
+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,
+                       "Steps to execute:{0}{0}" +
+                       "1. Click the Reset button.{0}{0}" +
+                       "2. Check the LabelEdit checkbox.{0}{0}" +
+                       "3. Click the text of Node1 (2x).{0}{0}" +
+                       "4. Do not change the label.{0}{0}" +
+                       "5. Press Enter key.{0}{0}" +
+                       "Expected result:{0}{0}" +
+                       "1. The following events have fired:{0}{0}" +
+                       "   TreeView => BeforeLabelEdit (Node1 => null){0}" +
+                       "   TreeView => AfterLabelEdit (Node1 => null){0}{0}" +
+                       "2. The label of the node has not changed.",
+                       Environment.NewLine);
+               // 
+               // _tabPage1
+               // 
+               _tabPage1 = new TabPage ();
+               _tabPage1.Text = "#1";
+               _tabPage1.Controls.Add (_bugDescriptionText1);
+               _tabControl.Controls.Add (_tabPage1);
+               // 
+               // _bugDescriptionText2
+               // 
+               _bugDescriptionText2 = new TextBox ();
+               _bugDescriptionText2.Dock = DockStyle.Fill;
+               _bugDescriptionText2.Multiline = true;
+               _bugDescriptionText2.Text = string.Format 
(CultureInfo.InvariantCulture,
+                       "Steps to execute:{0}{0}" +
+                       "1. Click the Reset button.{0}{0}" +
+                       "2. Check the LabelEdit checkbox.{0}{0}" +
+                       "3. Click the text of Node1 (2x).{0}{0}" +
+                       "4. Change the label to \"New\".{0}{0}" +
+                       "5. Press Enter key.{0}{0}" +
+                       "Expected result:{0}{0}" +
+                       "1. The following events have fired:{0}{0}" +
+                       "   TreeView => BeforeLabelEdit (Node1 => null){0}" +
+                       "   TreeView => AfterLabelEdit (Node1 => New){0}{0}" +
+                       "2. The label of the node has changed to \"New\".",
+                       Environment.NewLine);
+               // 
+               // _tabPage2
+               // 
+               _tabPage2 = new TabPage ();
+               _tabPage2.Text = "#2";
+               _tabPage2.Controls.Add (_bugDescriptionText2);
+               _tabControl.Controls.Add (_tabPage2);
+               // 
+               // _bugDescriptionText3
+               // 
+               _bugDescriptionText3 = new TextBox ();
+               _bugDescriptionText3.Dock = DockStyle.Fill;
+               _bugDescriptionText3.Multiline = true;
+               _bugDescriptionText3.Text = string.Format 
(CultureInfo.InvariantCulture,
+                       "Steps to execute:{0}{0}" +
+                       "1. Click the Reset button.{0}{0}" +
+                       "2. Check the LabelEdit checkbox.{0}{0}" +
+                       "3. Click the text of Node1 (2x).{0}{0}" +
+                       "4. Press Right-Arrow key.{0}{0}" +
+                       "5. Press E key.{0}{0}" +
+                       "6. Press Backspace key.{0}{0}" +
+                       "7. Press Enter key.{0}{0}" +
+                       "Expected result:{0}{0}" +
+                       "1. The following events have fired:{0}{0}" +
+                       "   TreeView => BeforeLabelEdit (Node1 => null){0}" +
+                       "   TreeView => AfterLabelEdit (Node1 => Node1){0}{0}" +
+                       "2. The label of the node has not changed.",
+                       Environment.NewLine);
+               // 
+               // _tabPage3
+               // 
+               _tabPage3 = new TabPage ();
+               _tabPage3.Text = "#3";
+               _tabPage3.Controls.Add (_bugDescriptionText3);
+               _tabControl.Controls.Add (_tabPage3);
+               // 
+               // _bugDescriptionText4
+               // 
+               _bugDescriptionText4 = new TextBox ();
+               _bugDescriptionText4.Dock = DockStyle.Fill;
+               _bugDescriptionText4.Multiline = true;
+               _bugDescriptionText4.Text = string.Format 
(CultureInfo.InvariantCulture,
+                       "Steps to execute:{0}{0}" +
+                       "1. Click the Reset button.{0}{0}" +
+                       "2. Check the LabelEdit checkbox.{0}{0}" +
+                       "3. Check the Before cancel checkbox.{0}{0}" +
+                       "4. Click the text of Node1 (2x).{0}{0}" +
+                       "Expected result:{0}{0}" +
+                       "1. The following events have fired:{0}{0}" +
+                       "   TreeView => BeforeLabelEdit (Node1 => null){0}{0}" +
+                       "2. The label of the node cannot be edited.",
+                       Environment.NewLine);
+               // 
+               // _tabPage4
+               // 
+               _tabPage4 = new TabPage ();
+               _tabPage4.Text = "#4";
+               _tabPage4.Controls.Add (_bugDescriptionText4);
+               _tabControl.Controls.Add (_tabPage4);
+               // 
+               // _bugDescriptionText5
+               // 
+               _bugDescriptionText5 = new TextBox ();
+               _bugDescriptionText5.Dock = DockStyle.Fill;
+               _bugDescriptionText5.Multiline = true;
+               _bugDescriptionText5.Text = string.Format 
(CultureInfo.InvariantCulture,
+                       "Steps to execute:{0}{0}" +
+                       "1. Click the Reset button.{0}{0}" +
+                       "2. Check the LabelEdit checkbox.{0}{0}" +
+                       "3. Check the After cancel checkbox.{0}{0}" +
+                       "4. Click text of Node1.{0}{0}" +
+                       "5. Change the label to \"New\".{0}{0}" +
+                       "6. Press Enter key.{0}{0}" +
+                       "Expected result:{0}{0}" +
+                       "1. The following events have fired:{0}{0}" +
+                       "   TreeView => BeforeLabelEdit (Node1 => null){0}" +
+                       "   TreeView => AfterLabelEdit (Node1 => New){0}{0}" +
+                       "2. The label of the node has not changed.",
+                       Environment.NewLine);
+               // 
+               // _tabPage5
+               // 
+               _tabPage5 = new TabPage ();
+               _tabPage5.Text = "#5";
+               _tabPage5.Controls.Add (_bugDescriptionText5);
+               _tabControl.Controls.Add (_tabPage5);
+               // 
+               // _bugDescriptionText6
+               // 
+               _bugDescriptionText6 = new TextBox ();
+               _bugDescriptionText6.Dock = DockStyle.Fill;
+               _bugDescriptionText6.Multiline = true;
+               _bugDescriptionText6.Text = string.Format 
(CultureInfo.InvariantCulture,
+                       "Steps to execute:{0}{0}" +
+                       "1. Click the Reset button.{0}{0}" +
+                       "2. Click text of Node1.{0}{0}" +
+                       "Expected result:{0}{0}" +
+                       "1. No events have fired.{0}{0}" +
+                       "2. The label of the node cannot be edited.",
+                       Environment.NewLine);
+               // 
+               // _tabPage6
+               // 
+               _tabPage6 = new TabPage ();
+               _tabPage6.Text = "#6";
+               _tabPage6.Controls.Add (_bugDescriptionText6);
+               _tabControl.Controls.Add (_tabPage6);
+               // 
+               // InstructionsForm
+               // 
+               ClientSize = new Size (330, 360);
+               Location = new Point (600, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "Instructions - bug #81847";
+       }
+
+       private TextBox _bugDescriptionText1;
+       private TextBox _bugDescriptionText2;
+       private TextBox _bugDescriptionText3;
+       private TextBox _bugDescriptionText4;
+       private TextBox _bugDescriptionText5;
+       private TextBox _bugDescriptionText6;
+       private TabControl _tabControl;
+       private TabPage _tabPage1;
+       private TabPage _tabPage2;
+       private TabPage _tabPage3;
+       private TabPage _tabPage4;
+       private TabPage _tabPage5;
+       private TabPage _tabPage6;
+}


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

Added: trunk/gert/interactive/bug81847/default.build
===================================================================
--- trunk/gert/interactive/bug81847/default.build       2007-07-20 19:15:26 UTC 
(rev 82383)
+++ trunk/gert/interactive/bug81847/default.build       2007-07-20 19:40:36 UTC 
(rev 82384)
@@ -0,0 +1,62 @@
+<project name="bug81847" 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/bug81847/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: trunk/gert/interactive/bug82081/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug82081/MainForm.cs 2007-07-20 19:15:26 UTC (rev 
82383)
+++ trunk/gert/interactive/bug82081/MainForm.cs 2007-07-20 19:40:36 UTC (rev 
82384)
@@ -7,12 +7,18 @@
 {
        public MainForm ()
        {
-               _flatButton = new Button ();
-               _flatButton.FlatAppearance.BorderSize = 0;
-               _flatButton.FlatStyle = FlatStyle.Flat;
-               _flatButton.Location = new Point (120, 20);
-               _flatButton.Text = "OK";
-               Controls.Add (_flatButton);
+               _okButton = new Button ();
+               _okButton.FlatAppearance.BorderSize = 0;
+               _okButton.FlatStyle = FlatStyle.Flat;
+               _okButton.Location = new Point (60, 20);
+               _okButton.Text = "OK";
+               Controls.Add (_okButton);
+               _cancelButton = new Button ();
+               _cancelButton.FlatAppearance.BorderSize = 0;
+               _cancelButton.FlatStyle = FlatStyle.Flat;
+               _cancelButton.Location = new Point (180, 20);
+               _cancelButton.Text = "Cancel";
+               Controls.Add (_cancelButton);
                // 
                // MainForm
                // 
@@ -35,7 +41,8 @@
                instructionsForm.Show ();
        }
 
-       private Button _flatButton;
+       private Button _okButton;
+       private Button _cancelButton;
 }
 
 public class InstructionsForm : Form
@@ -56,9 +63,9 @@
                _bugDescriptionText1.Multiline = true;
                _bugDescriptionText1.Text = string.Format 
(CultureInfo.InvariantCulture,
                        "Expected result on start-up:{0}{0}" +
-                       "1. The button is flat.{0}{0}" +
-                       "2. The button has no border.{0}{0}" +
-                       "3. The button highlights on mouseover.",
+                       "1. The Cancel button is flat.{0}{0}" +
+                       "2. The Cancel button has no border.{0}{0}" +
+                       "3. The Cancel button highlights on mouseover.",
                        Environment.NewLine);
                // 
                // _tabPage1
@@ -68,15 +75,38 @@
                _tabPage1.Controls.Add (_bugDescriptionText1);
                _tabControl.Controls.Add (_tabPage1);
                // 
+               // _bugDescriptionText2
+               // 
+               _bugDescriptionText2 = new TextBox ();
+               _bugDescriptionText2.Dock = DockStyle.Fill;
+               _bugDescriptionText2.Multiline = true;
+               _bugDescriptionText2.Text = string.Format 
(CultureInfo.InvariantCulture,
+                       "Steps to execute:{0}{0}" +
+                       "1. Click on the OK button.{0}{0}" +
+                       "2. Press Tab key.{0}{0}" +
+                       "Expected result:{0}{0}" +
+                       "1. Focus rectangle is drawn around the Cancel 
button.{0}{0}" +
+                       "2. The Cancel button highlights on mouseover.",
+                       Environment.NewLine);
+               // 
+               // _tabPage2
+               // 
+               _tabPage2 = new TabPage ();
+               _tabPage2.Text = "#2";
+               _tabPage2.Controls.Add (_bugDescriptionText2);
+               _tabControl.Controls.Add (_tabPage2);
+               // 
                // InstructionsForm
                // 
-               ClientSize = new Size (360, 150);
+               ClientSize = new Size (360, 190);
                Location = new Point (600, 100);
                StartPosition = FormStartPosition.Manual;
                Text = "Instructions - bug #82081";
        }
 
        private TextBox _bugDescriptionText1;
+       private TextBox _bugDescriptionText2;
        private TabControl _tabControl;
        private TabPage _tabPage1;
+       private TabPage _tabPage2;
 }

Added: trunk/gert/interactive/bug82154/MainForm.cs
===================================================================
--- trunk/gert/interactive/bug82154/MainForm.cs 2007-07-20 19:15:26 UTC (rev 
82383)
+++ trunk/gert/interactive/bug82154/MainForm.cs 2007-07-20 19:40:36 UTC (rev 
82384)
@@ -0,0 +1,106 @@
+using System;
+using System.Drawing;
+using System.Globalization;
+using System.Windows.Forms;
+
+public class MainForm : Form
+{
+       public MainForm ()
+       {
+               _treeView = new TreeView ();
+               _treeView.Dock = DockStyle.Top;
+               _treeView.Height = 100;
+               Controls.Add (_treeView);
+               // 
+               // _expandButton
+               // 
+               _expandButton = new Button ();
+               _expandButton.Location = new Point (100, 110);
+               _expandButton.Size = new Size (70, 20);
+               _expandButton.Text = "Expand";
+               _expandButton.Click += new EventHandler (ResetButton_Click);
+               Controls.Add (_expandButton);
+               // 
+               // MainForm
+               // 
+               ClientSize = new Size (292, 140);
+               Location = new Point (250, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "bug #82154";
+               Load += new EventHandler (MainForm_Load);
+       }
+
+       [STAThread]
+       static void Main ()
+       {
+               Application.Run (new MainForm ());
+       }
+
+       void MainForm_Load (object sender, EventArgs e)
+       {
+               Init ();
+               InstructionsForm instructionsForm = new InstructionsForm ();
+               instructionsForm.Show ();
+       }
+
+       void ResetButton_Click (object sender, EventArgs e)
+       {
+               _treeView.Nodes.Clear ();
+               Init ();
+               _treeView.ExpandAll ();
+       }
+
+       void Init ()
+       {
+               TreeNode treeNode1 = new TreeNode ("Node1");
+               TreeNode treeNode0 = new TreeNode ("Node0", new TreeNode [] { 
treeNode1 });
+               _treeView.Nodes.Add (treeNode0);
+       }
+
+       private TreeView _treeView;
+       private Button _expandButton;
+}
+
+public class InstructionsForm : Form
+{
+       public InstructionsForm ()
+       {
+               // 
+               // _tabControl
+               // 
+               _tabControl = new TabControl ();
+               _tabControl.Dock = DockStyle.Fill;
+               Controls.Add (_tabControl);
+               // 
+               // _bugDescriptionText1
+               // 
+               _bugDescriptionText1 = new TextBox ();
+               _bugDescriptionText1.Multiline = true;
+               _bugDescriptionText1.Location = new Point (8, 8);
+               _bugDescriptionText1.Dock = DockStyle.Fill;
+               _bugDescriptionText1.Text = string.Format 
(CultureInfo.InvariantCulture,
+                       "Steps to execute:{0}{0}" +
+                       "1. Click the Expand button.{0}{0}" +
+                       "Expected result:{0}{0}" +
+                       "1. Node0 is expanded.",
+                       Environment.NewLine);
+               // 
+               // _tabPage1
+               // 
+               _tabPage1 = new TabPage ();
+               _tabPage1.Text = "#1";
+               _tabPage1.Controls.Add (_bugDescriptionText1);
+               _tabControl.Controls.Add (_tabPage1);
+               // 
+               // InstructionsForm
+               // 
+               ClientSize = new Size (330, 140);
+               Location = new Point (600, 100);
+               StartPosition = FormStartPosition.Manual;
+               Text = "Instructions - bug #82154";
+       }
+
+       private TextBox _bugDescriptionText1;
+       private TabControl _tabControl;
+       private TabPage _tabPage1;
+}


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

Added: trunk/gert/interactive/bug82154/default.build
===================================================================
--- trunk/gert/interactive/bug82154/default.build       2007-07-20 19:15:26 UTC 
(rev 82383)
+++ trunk/gert/interactive/bug82154/default.build       2007-07-20 19:40:36 UTC 
(rev 82384)
@@ -0,0 +1,62 @@
+<project name="bug82154" 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/bug82154/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: trunk/gert/interactive/known_issues
===================================================================
--- trunk/gert/interactive/known_issues 2007-07-20 19:15:26 UTC (rev 82383)
+++ trunk/gert/interactive/known_issues 2007-07-20 19:40:36 UTC (rev 82384)
@@ -93,3 +93,4 @@
 bug81957/**
 bug82097/**
 bug82100/**
+bug82154/**

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

Reply via email to