rdp-rautomation 0.6.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.document +5 -0
- data/.rspec +2 -0
- data/.yardopts +6 -0
- data/History.rdoc +103 -0
- data/LICENSE +20 -0
- data/README.rdoc +114 -0
- data/Rakefile +43 -0
- data/VERSION +1 -0
- data/ext/AutoItX/AutoItX.chm +0 -0
- data/ext/AutoItX/AutoItX3.dll +0 -0
- data/ext/IAccessibleDLL/IAccessibleDLL.sln +20 -0
- data/ext/IAccessibleDLL/IAccessibleDLL.suo +0 -0
- data/ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.cpp +30 -0
- data/ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.vcxproj +102 -0
- data/ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.vcxproj.filters +42 -0
- data/ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.vcxproj.user +3 -0
- data/ext/IAccessibleDLL/IAccessibleDLL/ReadMe.txt +48 -0
- data/ext/IAccessibleDLL/IAccessibleDLL/dllmain.cpp +19 -0
- data/ext/IAccessibleDLL/IAccessibleDLL/stdafx.cpp +8 -0
- data/ext/IAccessibleDLL/IAccessibleDLL/stdafx.h +22 -0
- data/ext/IAccessibleDLL/IAccessibleDLL/table_support.cpp +282 -0
- data/ext/IAccessibleDLL/IAccessibleDLL/targetver.h +8 -0
- data/ext/IAccessibleDLL/Release/IAccessibleDLL.dll +0 -0
- data/ext/ListViewExplorer/ListViewExplorer.sln +20 -0
- data/ext/ListViewExplorer/ListViewExplorer.suo +0 -0
- data/ext/ListViewExplorer/ListViewExplorer/ListViewExplorer.cpp +174 -0
- data/ext/ListViewExplorer/ListViewExplorer/ListViewExplorer.vcxproj +95 -0
- data/ext/ListViewExplorer/ListViewExplorer/ListViewExplorer.vcxproj.filters +42 -0
- data/ext/ListViewExplorer/ListViewExplorer/ListViewExplorer.vcxproj.user +3 -0
- data/ext/ListViewExplorer/ListViewExplorer/ReadMe.txt +40 -0
- data/ext/ListViewExplorer/ListViewExplorer/stdafx.cpp +8 -0
- data/ext/ListViewExplorer/ListViewExplorer/stdafx.h +17 -0
- data/ext/ListViewExplorer/ListViewExplorer/table_support.cpp +250 -0
- data/ext/ListViewExplorer/ListViewExplorer/table_support.h +2 -0
- data/ext/ListViewExplorer/ListViewExplorer/targetver.h +8 -0
- data/ext/UiaDll/Release/UiaDll.dll +0 -0
- data/ext/UiaDll/UiaDll.sln +20 -0
- data/ext/UiaDll/UiaDll.suo +0 -0
- data/ext/UiaDll/UiaDll/ReadMe.txt +48 -0
- data/ext/UiaDll/UiaDll/UiaDll.cpp +205 -0
- data/ext/UiaDll/UiaDll/UiaDll.vcxproj +104 -0
- data/ext/UiaDll/UiaDll/UiaDll.vcxproj.filters +42 -0
- data/ext/UiaDll/UiaDll/dllmain.cpp +39 -0
- data/ext/UiaDll/UiaDll/globals.h +3 -0
- data/ext/UiaDll/UiaDll/stdafx.cpp +8 -0
- data/ext/UiaDll/UiaDll/stdafx.h +19 -0
- data/ext/UiaDll/UiaDll/targetver.h +8 -0
- data/ext/WindowsForms/bin/WindowsForms.exe +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms.sln +20 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms.suo +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/AboutBox.Designer.cs +80 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/AboutBox.cs +103 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/AboutBox.resx +120 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/DataEntryForm.Designer.cs +187 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/DataEntryForm.cs +46 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/DataEntryForm.resx +120 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/MainFormWindow.Designer.cs +377 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/MainFormWindow.cs +78 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/MainFormWindow.resx +120 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/PersonForm.Designer.cs +119 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/PersonForm.cs +34 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/PersonForm.resx +120 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/Program.cs +21 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/Properties/AssemblyInfo.cs +36 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/Properties/Resources.Designer.cs +71 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/Properties/Resources.resx +117 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/Properties/Settings.Designer.cs +30 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/Properties/Settings.settings +7 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/SimpleElementsForm.Designer.cs +93 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/SimpleElementsForm.cs +19 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/SimpleElementsForm.resx +120 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/WindowsForms.csproj +123 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/bin/Release/WindowsForms.exe +0 -0
- data/lib/rautomation.rb +6 -0
- data/lib/rautomation/adapter/autoit.rb +5 -0
- data/lib/rautomation/adapter/autoit/button.rb +59 -0
- data/lib/rautomation/adapter/autoit/locators.rb +22 -0
- data/lib/rautomation/adapter/autoit/text_field.rb +61 -0
- data/lib/rautomation/adapter/autoit/window.rb +184 -0
- data/lib/rautomation/adapter/helper.rb +20 -0
- data/lib/rautomation/adapter/win_ffi.rb +21 -0
- data/lib/rautomation/adapter/win_ffi/button.rb +25 -0
- data/lib/rautomation/adapter/win_ffi/button_helper.rb +24 -0
- data/lib/rautomation/adapter/win_ffi/checkbox.rb +19 -0
- data/lib/rautomation/adapter/win_ffi/constants.rb +94 -0
- data/lib/rautomation/adapter/win_ffi/control.rb +79 -0
- data/lib/rautomation/adapter/win_ffi/functions.rb +333 -0
- data/lib/rautomation/adapter/win_ffi/keystroke_converter.rb +67 -0
- data/lib/rautomation/adapter/win_ffi/label.rb +21 -0
- data/lib/rautomation/adapter/win_ffi/list_box.rb +60 -0
- data/lib/rautomation/adapter/win_ffi/locators.rb +22 -0
- data/lib/rautomation/adapter/win_ffi/ms_uia/uia_dll.rb +36 -0
- data/lib/rautomation/adapter/win_ffi/radio.rb +19 -0
- data/lib/rautomation/adapter/win_ffi/select_list.rb +87 -0
- data/lib/rautomation/adapter/win_ffi/table.rb +57 -0
- data/lib/rautomation/adapter/win_ffi/text_field.rb +52 -0
- data/lib/rautomation/adapter/win_ffi/window.rb +226 -0
- data/lib/rautomation/button.rb +55 -0
- data/lib/rautomation/element_collections.rb +47 -0
- data/lib/rautomation/text_field.rb +60 -0
- data/lib/rautomation/wait_helper.rb +23 -0
- data/lib/rautomation/window.rb +234 -0
- data/spec/adapter/win_ffi/button_spec.rb +41 -0
- data/spec/adapter/win_ffi/checkbox_spec.rb +48 -0
- data/spec/adapter/win_ffi/keystroke_converter_spec.rb +47 -0
- data/spec/adapter/win_ffi/label_spec.rb +21 -0
- data/spec/adapter/win_ffi/listbox_spec.rb +52 -0
- data/spec/adapter/win_ffi/radio_spec.rb +37 -0
- data/spec/adapter/win_ffi/select_list_spec.rb +66 -0
- data/spec/adapter/win_ffi/table_spec.rb +39 -0
- data/spec/adapter/win_ffi/text_field_spec.rb +23 -0
- data/spec/adapter/win_ffi/window_spec.rb +43 -0
- data/spec/button_spec.rb +68 -0
- data/spec/buttons_spec.rb +21 -0
- data/spec/spec_helper.rb +96 -0
- data/spec/text_field_spec.rb +65 -0
- data/spec/text_fields_spec.rb +22 -0
- data/spec/window_spec.rb +122 -0
- data/spec/windows_spec.rb +55 -0
- metadata +207 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
using System;
|
|
2
|
+
using System.Collections.Generic;
|
|
3
|
+
using System.ComponentModel;
|
|
4
|
+
using System.Data;
|
|
5
|
+
using System.Drawing;
|
|
6
|
+
using System.Linq;
|
|
7
|
+
using System.Text;
|
|
8
|
+
using System.Windows.Forms;
|
|
9
|
+
|
|
10
|
+
namespace WindowsForms
|
|
11
|
+
{
|
|
12
|
+
public partial class DataEntryForm : Form
|
|
13
|
+
{
|
|
14
|
+
public DataEntryForm()
|
|
15
|
+
{
|
|
16
|
+
InitializeComponent();
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
private void closeDataEntryFormButton_Click(object sender, EventArgs e)
|
|
20
|
+
{
|
|
21
|
+
this.Close();
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
private void addItemButton_Click(object sender, EventArgs e)
|
|
25
|
+
{
|
|
26
|
+
PersonForm personForm = new PersonForm(this);
|
|
27
|
+
personForm.Show();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
public void addPerson(String personName, String dateOfBirth)
|
|
31
|
+
{
|
|
32
|
+
ListViewItem newItem = new ListViewItem(personName);
|
|
33
|
+
newItem.SubItems.Add(dateOfBirth);
|
|
34
|
+
personListView.Items.Add(newItem);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
private void deleteItemButton_Click(object sender, EventArgs e)
|
|
38
|
+
{
|
|
39
|
+
foreach (ListViewItem item in personListView.SelectedItems)
|
|
40
|
+
{
|
|
41
|
+
personListView.Items.Remove(item);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<root>
|
|
3
|
+
<!--
|
|
4
|
+
Microsoft ResX Schema
|
|
5
|
+
|
|
6
|
+
Version 2.0
|
|
7
|
+
|
|
8
|
+
The primary goals of this format is to allow a simple XML format
|
|
9
|
+
that is mostly human readable. The generation and parsing of the
|
|
10
|
+
various data types are done through the TypeConverter classes
|
|
11
|
+
associated with the data types.
|
|
12
|
+
|
|
13
|
+
Example:
|
|
14
|
+
|
|
15
|
+
... ado.net/XML headers & schema ...
|
|
16
|
+
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
|
17
|
+
<resheader name="version">2.0</resheader>
|
|
18
|
+
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
|
19
|
+
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
|
20
|
+
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
|
21
|
+
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
|
22
|
+
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
|
23
|
+
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
|
24
|
+
</data>
|
|
25
|
+
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
|
26
|
+
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
|
27
|
+
<comment>This is a comment</comment>
|
|
28
|
+
</data>
|
|
29
|
+
|
|
30
|
+
There are any number of "resheader" rows that contain simple
|
|
31
|
+
name/value pairs.
|
|
32
|
+
|
|
33
|
+
Each data row contains a name, and value. The row also contains a
|
|
34
|
+
type or mimetype. Type corresponds to a .NET class that support
|
|
35
|
+
text/value conversion through the TypeConverter architecture.
|
|
36
|
+
Classes that don't support this are serialized and stored with the
|
|
37
|
+
mimetype set.
|
|
38
|
+
|
|
39
|
+
The mimetype is used for serialized objects, and tells the
|
|
40
|
+
ResXResourceReader how to depersist the object. This is currently not
|
|
41
|
+
extensible. For a given mimetype the value must be set accordingly:
|
|
42
|
+
|
|
43
|
+
Note - application/x-microsoft.net.object.binary.base64 is the format
|
|
44
|
+
that the ResXResourceWriter will generate, however the reader can
|
|
45
|
+
read any of the formats listed below.
|
|
46
|
+
|
|
47
|
+
mimetype: application/x-microsoft.net.object.binary.base64
|
|
48
|
+
value : The object must be serialized with
|
|
49
|
+
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
|
50
|
+
: and then encoded with base64 encoding.
|
|
51
|
+
|
|
52
|
+
mimetype: application/x-microsoft.net.object.soap.base64
|
|
53
|
+
value : The object must be serialized with
|
|
54
|
+
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
|
55
|
+
: and then encoded with base64 encoding.
|
|
56
|
+
|
|
57
|
+
mimetype: application/x-microsoft.net.object.bytearray.base64
|
|
58
|
+
value : The object must be serialized into a byte array
|
|
59
|
+
: using a System.ComponentModel.TypeConverter
|
|
60
|
+
: and then encoded with base64 encoding.
|
|
61
|
+
-->
|
|
62
|
+
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
|
63
|
+
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
|
64
|
+
<xsd:element name="root" msdata:IsDataSet="true">
|
|
65
|
+
<xsd:complexType>
|
|
66
|
+
<xsd:choice maxOccurs="unbounded">
|
|
67
|
+
<xsd:element name="metadata">
|
|
68
|
+
<xsd:complexType>
|
|
69
|
+
<xsd:sequence>
|
|
70
|
+
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
|
71
|
+
</xsd:sequence>
|
|
72
|
+
<xsd:attribute name="name" use="required" type="xsd:string" />
|
|
73
|
+
<xsd:attribute name="type" type="xsd:string" />
|
|
74
|
+
<xsd:attribute name="mimetype" type="xsd:string" />
|
|
75
|
+
<xsd:attribute ref="xml:space" />
|
|
76
|
+
</xsd:complexType>
|
|
77
|
+
</xsd:element>
|
|
78
|
+
<xsd:element name="assembly">
|
|
79
|
+
<xsd:complexType>
|
|
80
|
+
<xsd:attribute name="alias" type="xsd:string" />
|
|
81
|
+
<xsd:attribute name="name" type="xsd:string" />
|
|
82
|
+
</xsd:complexType>
|
|
83
|
+
</xsd:element>
|
|
84
|
+
<xsd:element name="data">
|
|
85
|
+
<xsd:complexType>
|
|
86
|
+
<xsd:sequence>
|
|
87
|
+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
|
88
|
+
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
|
89
|
+
</xsd:sequence>
|
|
90
|
+
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
|
91
|
+
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
|
92
|
+
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
|
93
|
+
<xsd:attribute ref="xml:space" />
|
|
94
|
+
</xsd:complexType>
|
|
95
|
+
</xsd:element>
|
|
96
|
+
<xsd:element name="resheader">
|
|
97
|
+
<xsd:complexType>
|
|
98
|
+
<xsd:sequence>
|
|
99
|
+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
|
100
|
+
</xsd:sequence>
|
|
101
|
+
<xsd:attribute name="name" type="xsd:string" use="required" />
|
|
102
|
+
</xsd:complexType>
|
|
103
|
+
</xsd:element>
|
|
104
|
+
</xsd:choice>
|
|
105
|
+
</xsd:complexType>
|
|
106
|
+
</xsd:element>
|
|
107
|
+
</xsd:schema>
|
|
108
|
+
<resheader name="resmimetype">
|
|
109
|
+
<value>text/microsoft-resx</value>
|
|
110
|
+
</resheader>
|
|
111
|
+
<resheader name="version">
|
|
112
|
+
<value>2.0</value>
|
|
113
|
+
</resheader>
|
|
114
|
+
<resheader name="reader">
|
|
115
|
+
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
116
|
+
</resheader>
|
|
117
|
+
<resheader name="writer">
|
|
118
|
+
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
119
|
+
</resheader>
|
|
120
|
+
</root>
|
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
namespace WindowsForms
|
|
2
|
+
{
|
|
3
|
+
partial class MainFormWindow
|
|
4
|
+
{
|
|
5
|
+
/// <summary>
|
|
6
|
+
/// Required designer variable.
|
|
7
|
+
/// </summary>
|
|
8
|
+
private System.ComponentModel.IContainer components = null;
|
|
9
|
+
|
|
10
|
+
/// <summary>
|
|
11
|
+
/// Clean up any resources being used.
|
|
12
|
+
/// </summary>
|
|
13
|
+
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
14
|
+
protected override void Dispose(bool disposing)
|
|
15
|
+
{
|
|
16
|
+
if (disposing && (components != null))
|
|
17
|
+
{
|
|
18
|
+
components.Dispose();
|
|
19
|
+
}
|
|
20
|
+
base.Dispose(disposing);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
#region Windows Form Designer generated code
|
|
24
|
+
|
|
25
|
+
/// <summary>
|
|
26
|
+
/// Required method for Designer support - do not modify
|
|
27
|
+
/// the contents of this method with the code editor.
|
|
28
|
+
/// </summary>
|
|
29
|
+
private void InitializeComponent()
|
|
30
|
+
{
|
|
31
|
+
this.label1 = new System.Windows.Forms.Label();
|
|
32
|
+
this.aboutButton = new System.Windows.Forms.Button();
|
|
33
|
+
this.button1 = new System.Windows.Forms.Button();
|
|
34
|
+
this.textField = new System.Windows.Forms.TextBox();
|
|
35
|
+
this.checkBox = new System.Windows.Forms.CheckBox();
|
|
36
|
+
this.checkBoxLabel = new System.Windows.Forms.Label();
|
|
37
|
+
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
|
38
|
+
this.radioButtonDisabled = new System.Windows.Forms.RadioButton();
|
|
39
|
+
this.radioButtonReset = new System.Windows.Forms.Button();
|
|
40
|
+
this.radioButtonLabel = new System.Windows.Forms.Label();
|
|
41
|
+
this.radioButton2 = new System.Windows.Forms.RadioButton();
|
|
42
|
+
this.radioButton1 = new System.Windows.Forms.RadioButton();
|
|
43
|
+
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
|
44
|
+
this.comboBoxDisabled = new System.Windows.Forms.ComboBox();
|
|
45
|
+
this.fruitsLabel = new System.Windows.Forms.Label();
|
|
46
|
+
this.FruitsComboBox = new System.Windows.Forms.ComboBox();
|
|
47
|
+
this.nextFormButton = new System.Windows.Forms.Button();
|
|
48
|
+
this.label2 = new System.Windows.Forms.Label();
|
|
49
|
+
this.buttonButton = new System.Windows.Forms.Button();
|
|
50
|
+
this.enabledButton = new System.Windows.Forms.Button();
|
|
51
|
+
this.disabledButton = new System.Windows.Forms.Button();
|
|
52
|
+
this.checkBoxDisabled = new System.Windows.Forms.CheckBox();
|
|
53
|
+
this.textBoxDisabled = new System.Windows.Forms.TextBox();
|
|
54
|
+
this.FruitListBox = new System.Windows.Forms.ListBox();
|
|
55
|
+
this.groupBox1.SuspendLayout();
|
|
56
|
+
this.groupBox2.SuspendLayout();
|
|
57
|
+
this.SuspendLayout();
|
|
58
|
+
//
|
|
59
|
+
// label1
|
|
60
|
+
//
|
|
61
|
+
this.label1.AutoSize = true;
|
|
62
|
+
this.label1.Location = new System.Drawing.Point(139, 38);
|
|
63
|
+
this.label1.Name = "label1";
|
|
64
|
+
this.label1.Size = new System.Drawing.Size(102, 13);
|
|
65
|
+
this.label1.TabIndex = 0;
|
|
66
|
+
this.label1.Text = "This is a sample text";
|
|
67
|
+
this.label1.Click += new System.EventHandler(this.label1_Click);
|
|
68
|
+
//
|
|
69
|
+
// aboutButton
|
|
70
|
+
//
|
|
71
|
+
this.aboutButton.Location = new System.Drawing.Point(12, 9);
|
|
72
|
+
this.aboutButton.Name = "aboutButton";
|
|
73
|
+
this.aboutButton.Size = new System.Drawing.Size(95, 23);
|
|
74
|
+
this.aboutButton.TabIndex = 1;
|
|
75
|
+
this.aboutButton.Text = "&About";
|
|
76
|
+
this.aboutButton.UseVisualStyleBackColor = true;
|
|
77
|
+
this.aboutButton.Click += new System.EventHandler(this.aboutButton_Click);
|
|
78
|
+
//
|
|
79
|
+
// button1
|
|
80
|
+
//
|
|
81
|
+
this.button1.Location = new System.Drawing.Point(12, 96);
|
|
82
|
+
this.button1.Name = "button1";
|
|
83
|
+
this.button1.Size = new System.Drawing.Size(95, 23);
|
|
84
|
+
this.button1.TabIndex = 4;
|
|
85
|
+
this.button1.Text = "Close";
|
|
86
|
+
this.button1.UseVisualStyleBackColor = true;
|
|
87
|
+
this.button1.Click += new System.EventHandler(this.button1_Click);
|
|
88
|
+
//
|
|
89
|
+
// textField
|
|
90
|
+
//
|
|
91
|
+
this.textField.Location = new System.Drawing.Point(142, 69);
|
|
92
|
+
this.textField.Name = "textField";
|
|
93
|
+
this.textField.Size = new System.Drawing.Size(184, 20);
|
|
94
|
+
this.textField.TabIndex = 5;
|
|
95
|
+
//
|
|
96
|
+
// checkBox
|
|
97
|
+
//
|
|
98
|
+
this.checkBox.AutoSize = true;
|
|
99
|
+
this.checkBox.Location = new System.Drawing.Point(142, 105);
|
|
100
|
+
this.checkBox.Name = "checkBox";
|
|
101
|
+
this.checkBox.Size = new System.Drawing.Size(74, 17);
|
|
102
|
+
this.checkBox.TabIndex = 6;
|
|
103
|
+
this.checkBox.Text = "checkBox";
|
|
104
|
+
this.checkBox.UseVisualStyleBackColor = true;
|
|
105
|
+
this.checkBox.CheckedChanged += new System.EventHandler(this.checkBox_CheckedChanged);
|
|
106
|
+
//
|
|
107
|
+
// checkBoxLabel
|
|
108
|
+
//
|
|
109
|
+
this.checkBoxLabel.AutoSize = true;
|
|
110
|
+
this.checkBoxLabel.Location = new System.Drawing.Point(246, 106);
|
|
111
|
+
this.checkBoxLabel.Name = "checkBoxLabel";
|
|
112
|
+
this.checkBoxLabel.Size = new System.Drawing.Size(80, 13);
|
|
113
|
+
this.checkBoxLabel.TabIndex = 5;
|
|
114
|
+
this.checkBoxLabel.Text = "checkBox is off";
|
|
115
|
+
//
|
|
116
|
+
// groupBox1
|
|
117
|
+
//
|
|
118
|
+
this.groupBox1.Controls.Add(this.radioButtonDisabled);
|
|
119
|
+
this.groupBox1.Controls.Add(this.radioButtonReset);
|
|
120
|
+
this.groupBox1.Controls.Add(this.radioButtonLabel);
|
|
121
|
+
this.groupBox1.Controls.Add(this.radioButton2);
|
|
122
|
+
this.groupBox1.Controls.Add(this.radioButton1);
|
|
123
|
+
this.groupBox1.Location = new System.Drawing.Point(142, 136);
|
|
124
|
+
this.groupBox1.Name = "groupBox1";
|
|
125
|
+
this.groupBox1.Size = new System.Drawing.Size(325, 89);
|
|
126
|
+
this.groupBox1.TabIndex = 6;
|
|
127
|
+
this.groupBox1.TabStop = false;
|
|
128
|
+
this.groupBox1.Text = "Groupd of radio buttons";
|
|
129
|
+
//
|
|
130
|
+
// radioButtonDisabled
|
|
131
|
+
//
|
|
132
|
+
this.radioButtonDisabled.AutoSize = true;
|
|
133
|
+
this.radioButtonDisabled.Enabled = false;
|
|
134
|
+
this.radioButtonDisabled.Location = new System.Drawing.Point(188, 28);
|
|
135
|
+
this.radioButtonDisabled.Name = "radioButtonDisabled";
|
|
136
|
+
this.radioButtonDisabled.Size = new System.Drawing.Size(100, 17);
|
|
137
|
+
this.radioButtonDisabled.TabIndex = 10;
|
|
138
|
+
this.radioButtonDisabled.TabStop = true;
|
|
139
|
+
this.radioButtonDisabled.Text = "Option Disabled";
|
|
140
|
+
this.radioButtonDisabled.UseVisualStyleBackColor = true;
|
|
141
|
+
//
|
|
142
|
+
// radioButtonReset
|
|
143
|
+
//
|
|
144
|
+
this.radioButtonReset.Location = new System.Drawing.Point(143, 56);
|
|
145
|
+
this.radioButtonReset.Name = "radioButtonReset";
|
|
146
|
+
this.radioButtonReset.Size = new System.Drawing.Size(75, 23);
|
|
147
|
+
this.radioButtonReset.TabIndex = 9;
|
|
148
|
+
this.radioButtonReset.Text = "Reset";
|
|
149
|
+
this.radioButtonReset.UseVisualStyleBackColor = true;
|
|
150
|
+
this.radioButtonReset.Click += new System.EventHandler(this.radioButtonReset_Click);
|
|
151
|
+
//
|
|
152
|
+
// radioButtonLabel
|
|
153
|
+
//
|
|
154
|
+
this.radioButtonLabel.AutoSize = true;
|
|
155
|
+
this.radioButtonLabel.Location = new System.Drawing.Point(6, 61);
|
|
156
|
+
this.radioButtonLabel.Name = "radioButtonLabel";
|
|
157
|
+
this.radioButtonLabel.Size = new System.Drawing.Size(96, 13);
|
|
158
|
+
this.radioButtonLabel.TabIndex = 2;
|
|
159
|
+
this.radioButtonLabel.Text = "No option selected";
|
|
160
|
+
//
|
|
161
|
+
// radioButton2
|
|
162
|
+
//
|
|
163
|
+
this.radioButton2.AutoSize = true;
|
|
164
|
+
this.radioButton2.Location = new System.Drawing.Point(107, 28);
|
|
165
|
+
this.radioButton2.Name = "radioButton2";
|
|
166
|
+
this.radioButton2.Size = new System.Drawing.Size(65, 17);
|
|
167
|
+
this.radioButton2.TabIndex = 8;
|
|
168
|
+
this.radioButton2.TabStop = true;
|
|
169
|
+
this.radioButton2.Text = "Option 2";
|
|
170
|
+
this.radioButton2.UseVisualStyleBackColor = true;
|
|
171
|
+
this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButton2_CheckedChanged);
|
|
172
|
+
//
|
|
173
|
+
// radioButton1
|
|
174
|
+
//
|
|
175
|
+
this.radioButton1.AutoSize = true;
|
|
176
|
+
this.radioButton1.Location = new System.Drawing.Point(9, 28);
|
|
177
|
+
this.radioButton1.Name = "radioButton1";
|
|
178
|
+
this.radioButton1.Size = new System.Drawing.Size(65, 17);
|
|
179
|
+
this.radioButton1.TabIndex = 7;
|
|
180
|
+
this.radioButton1.TabStop = true;
|
|
181
|
+
this.radioButton1.Text = "Option 1";
|
|
182
|
+
this.radioButton1.UseVisualStyleBackColor = true;
|
|
183
|
+
this.radioButton1.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);
|
|
184
|
+
//
|
|
185
|
+
// groupBox2
|
|
186
|
+
//
|
|
187
|
+
this.groupBox2.Controls.Add(this.comboBoxDisabled);
|
|
188
|
+
this.groupBox2.Controls.Add(this.fruitsLabel);
|
|
189
|
+
this.groupBox2.Controls.Add(this.FruitsComboBox);
|
|
190
|
+
this.groupBox2.Location = new System.Drawing.Point(142, 231);
|
|
191
|
+
this.groupBox2.Name = "groupBox2";
|
|
192
|
+
this.groupBox2.Size = new System.Drawing.Size(325, 63);
|
|
193
|
+
this.groupBox2.TabIndex = 7;
|
|
194
|
+
this.groupBox2.TabStop = false;
|
|
195
|
+
this.groupBox2.Text = "Drop down list";
|
|
196
|
+
//
|
|
197
|
+
// comboBoxDisabled
|
|
198
|
+
//
|
|
199
|
+
this.comboBoxDisabled.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
200
|
+
this.comboBoxDisabled.Enabled = false;
|
|
201
|
+
this.comboBoxDisabled.FormattingEnabled = true;
|
|
202
|
+
this.comboBoxDisabled.Items.AddRange(new object[] {
|
|
203
|
+
"Apple",
|
|
204
|
+
"Caimito",
|
|
205
|
+
"Coconut",
|
|
206
|
+
"Orange",
|
|
207
|
+
"Passion Fruit"});
|
|
208
|
+
this.comboBoxDisabled.Location = new System.Drawing.Point(235, 27);
|
|
209
|
+
this.comboBoxDisabled.Name = "comboBoxDisabled";
|
|
210
|
+
this.comboBoxDisabled.Size = new System.Drawing.Size(84, 21);
|
|
211
|
+
this.comboBoxDisabled.TabIndex = 11;
|
|
212
|
+
//
|
|
213
|
+
// fruitsLabel
|
|
214
|
+
//
|
|
215
|
+
this.fruitsLabel.AutoSize = true;
|
|
216
|
+
this.fruitsLabel.Location = new System.Drawing.Point(133, 30);
|
|
217
|
+
this.fruitsLabel.Name = "fruitsLabel";
|
|
218
|
+
this.fruitsLabel.Size = new System.Drawing.Size(35, 13);
|
|
219
|
+
this.fruitsLabel.TabIndex = 1;
|
|
220
|
+
this.fruitsLabel.Text = "label2";
|
|
221
|
+
//
|
|
222
|
+
// FruitsComboBox
|
|
223
|
+
//
|
|
224
|
+
this.FruitsComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
225
|
+
this.FruitsComboBox.FormattingEnabled = true;
|
|
226
|
+
this.FruitsComboBox.Items.AddRange(new object[] {
|
|
227
|
+
"Apple",
|
|
228
|
+
"Caimito",
|
|
229
|
+
"Coconut",
|
|
230
|
+
"Orange",
|
|
231
|
+
"Passion Fruit"});
|
|
232
|
+
this.FruitsComboBox.Location = new System.Drawing.Point(6, 27);
|
|
233
|
+
this.FruitsComboBox.Name = "FruitsComboBox";
|
|
234
|
+
this.FruitsComboBox.Size = new System.Drawing.Size(121, 21);
|
|
235
|
+
this.FruitsComboBox.TabIndex = 10;
|
|
236
|
+
this.FruitsComboBox.SelectedIndexChanged += new System.EventHandler(this.FruitsComboBox_SelectedIndexChanged);
|
|
237
|
+
//
|
|
238
|
+
// nextFormButton
|
|
239
|
+
//
|
|
240
|
+
this.nextFormButton.Location = new System.Drawing.Point(12, 38);
|
|
241
|
+
this.nextFormButton.Name = "nextFormButton";
|
|
242
|
+
this.nextFormButton.Size = new System.Drawing.Size(95, 23);
|
|
243
|
+
this.nextFormButton.TabIndex = 2;
|
|
244
|
+
this.nextFormButton.Text = "Data Entry Form";
|
|
245
|
+
this.nextFormButton.UseVisualStyleBackColor = true;
|
|
246
|
+
this.nextFormButton.Click += new System.EventHandler(this.nextFormButton_Click);
|
|
247
|
+
//
|
|
248
|
+
// label2
|
|
249
|
+
//
|
|
250
|
+
this.label2.AutoSize = true;
|
|
251
|
+
this.label2.Location = new System.Drawing.Point(139, 14);
|
|
252
|
+
this.label2.Name = "label2";
|
|
253
|
+
this.label2.Size = new System.Drawing.Size(108, 13);
|
|
254
|
+
this.label2.TabIndex = 9;
|
|
255
|
+
this.label2.Text = "Assorted UI Elements";
|
|
256
|
+
//
|
|
257
|
+
// buttonButton
|
|
258
|
+
//
|
|
259
|
+
this.buttonButton.Location = new System.Drawing.Point(12, 67);
|
|
260
|
+
this.buttonButton.Name = "buttonButton";
|
|
261
|
+
this.buttonButton.Size = new System.Drawing.Size(95, 23);
|
|
262
|
+
this.buttonButton.TabIndex = 3;
|
|
263
|
+
this.buttonButton.Text = "Simple Elements";
|
|
264
|
+
this.buttonButton.UseVisualStyleBackColor = true;
|
|
265
|
+
this.buttonButton.Click += new System.EventHandler(this.buttonButton_Click);
|
|
266
|
+
//
|
|
267
|
+
// enabledButton
|
|
268
|
+
//
|
|
269
|
+
this.enabledButton.Location = new System.Drawing.Point(574, 27);
|
|
270
|
+
this.enabledButton.Name = "enabledButton";
|
|
271
|
+
this.enabledButton.Size = new System.Drawing.Size(75, 23);
|
|
272
|
+
this.enabledButton.TabIndex = 10;
|
|
273
|
+
this.enabledButton.Text = "Enabled";
|
|
274
|
+
this.enabledButton.UseVisualStyleBackColor = true;
|
|
275
|
+
//
|
|
276
|
+
// disabledButton
|
|
277
|
+
//
|
|
278
|
+
this.disabledButton.Enabled = false;
|
|
279
|
+
this.disabledButton.Location = new System.Drawing.Point(574, 69);
|
|
280
|
+
this.disabledButton.Name = "disabledButton";
|
|
281
|
+
this.disabledButton.Size = new System.Drawing.Size(75, 23);
|
|
282
|
+
this.disabledButton.TabIndex = 11;
|
|
283
|
+
this.disabledButton.Text = "Disabled";
|
|
284
|
+
this.disabledButton.UseVisualStyleBackColor = true;
|
|
285
|
+
//
|
|
286
|
+
// checkBoxDisabled
|
|
287
|
+
//
|
|
288
|
+
this.checkBoxDisabled.AutoSize = true;
|
|
289
|
+
this.checkBoxDisabled.Enabled = false;
|
|
290
|
+
this.checkBoxDisabled.Location = new System.Drawing.Point(353, 102);
|
|
291
|
+
this.checkBoxDisabled.Name = "checkBoxDisabled";
|
|
292
|
+
this.checkBoxDisabled.Size = new System.Drawing.Size(115, 17);
|
|
293
|
+
this.checkBoxDisabled.TabIndex = 12;
|
|
294
|
+
this.checkBoxDisabled.Text = "checkBoxDisabled";
|
|
295
|
+
this.checkBoxDisabled.UseVisualStyleBackColor = true;
|
|
296
|
+
//
|
|
297
|
+
// textBoxDisabled
|
|
298
|
+
//
|
|
299
|
+
this.textBoxDisabled.Enabled = false;
|
|
300
|
+
this.textBoxDisabled.Location = new System.Drawing.Point(332, 69);
|
|
301
|
+
this.textBoxDisabled.Name = "textBoxDisabled";
|
|
302
|
+
this.textBoxDisabled.Size = new System.Drawing.Size(184, 20);
|
|
303
|
+
this.textBoxDisabled.TabIndex = 13;
|
|
304
|
+
//
|
|
305
|
+
// FruitListBox
|
|
306
|
+
//
|
|
307
|
+
this.FruitListBox.FormattingEnabled = true;
|
|
308
|
+
this.FruitListBox.Items.AddRange(new object[] {
|
|
309
|
+
"Apple",
|
|
310
|
+
"Orange",
|
|
311
|
+
"Mango"});
|
|
312
|
+
this.FruitListBox.Location = new System.Drawing.Point(490, 136);
|
|
313
|
+
this.FruitListBox.Name = "FruitListBox";
|
|
314
|
+
this.FruitListBox.Size = new System.Drawing.Size(159, 95);
|
|
315
|
+
this.FruitListBox.TabIndex = 14;
|
|
316
|
+
//
|
|
317
|
+
// MainFormWindow
|
|
318
|
+
//
|
|
319
|
+
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
320
|
+
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
321
|
+
this.ClientSize = new System.Drawing.Size(724, 474);
|
|
322
|
+
this.Controls.Add(this.FruitListBox);
|
|
323
|
+
this.Controls.Add(this.textBoxDisabled);
|
|
324
|
+
this.Controls.Add(this.checkBoxDisabled);
|
|
325
|
+
this.Controls.Add(this.disabledButton);
|
|
326
|
+
this.Controls.Add(this.enabledButton);
|
|
327
|
+
this.Controls.Add(this.buttonButton);
|
|
328
|
+
this.Controls.Add(this.label2);
|
|
329
|
+
this.Controls.Add(this.nextFormButton);
|
|
330
|
+
this.Controls.Add(this.groupBox2);
|
|
331
|
+
this.Controls.Add(this.groupBox1);
|
|
332
|
+
this.Controls.Add(this.checkBoxLabel);
|
|
333
|
+
this.Controls.Add(this.checkBox);
|
|
334
|
+
this.Controls.Add(this.textField);
|
|
335
|
+
this.Controls.Add(this.button1);
|
|
336
|
+
this.Controls.Add(this.aboutButton);
|
|
337
|
+
this.Controls.Add(this.label1);
|
|
338
|
+
this.Name = "MainFormWindow";
|
|
339
|
+
this.Text = "MainFormWindow";
|
|
340
|
+
this.groupBox1.ResumeLayout(false);
|
|
341
|
+
this.groupBox1.PerformLayout();
|
|
342
|
+
this.groupBox2.ResumeLayout(false);
|
|
343
|
+
this.groupBox2.PerformLayout();
|
|
344
|
+
this.ResumeLayout(false);
|
|
345
|
+
this.PerformLayout();
|
|
346
|
+
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
#endregion
|
|
350
|
+
|
|
351
|
+
private System.Windows.Forms.Label label1;
|
|
352
|
+
private System.Windows.Forms.Button aboutButton;
|
|
353
|
+
private System.Windows.Forms.Button button1;
|
|
354
|
+
private System.Windows.Forms.TextBox textField;
|
|
355
|
+
private System.Windows.Forms.CheckBox checkBox;
|
|
356
|
+
private System.Windows.Forms.Label checkBoxLabel;
|
|
357
|
+
private System.Windows.Forms.GroupBox groupBox1;
|
|
358
|
+
private System.Windows.Forms.Label radioButtonLabel;
|
|
359
|
+
private System.Windows.Forms.RadioButton radioButton2;
|
|
360
|
+
private System.Windows.Forms.RadioButton radioButton1;
|
|
361
|
+
private System.Windows.Forms.Button radioButtonReset;
|
|
362
|
+
private System.Windows.Forms.GroupBox groupBox2;
|
|
363
|
+
private System.Windows.Forms.ComboBox FruitsComboBox;
|
|
364
|
+
private System.Windows.Forms.Label fruitsLabel;
|
|
365
|
+
private System.Windows.Forms.Button nextFormButton;
|
|
366
|
+
private System.Windows.Forms.Label label2;
|
|
367
|
+
private System.Windows.Forms.Button buttonButton;
|
|
368
|
+
private System.Windows.Forms.Button enabledButton;
|
|
369
|
+
private System.Windows.Forms.Button disabledButton;
|
|
370
|
+
private System.Windows.Forms.CheckBox checkBoxDisabled;
|
|
371
|
+
private System.Windows.Forms.RadioButton radioButtonDisabled;
|
|
372
|
+
private System.Windows.Forms.TextBox textBoxDisabled;
|
|
373
|
+
private System.Windows.Forms.ComboBox comboBoxDisabled;
|
|
374
|
+
private System.Windows.Forms.ListBox FruitListBox;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|