rautomation 0.4.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +16 -1
- data/LICENSE +1 -1
- data/README.rdoc +25 -7
- data/Rakefile +4 -0
- data/VERSION +1 -1
- data/ext/IAccessibleDLL/IAccessibleDLL.sln +20 -0
- data/ext/IAccessibleDLL/IAccessibleDLL.suo +0 -0
- data/ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.cpp +36 -0
- data/ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.vcxproj +100 -0
- data/ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.vcxproj.filters +39 -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 +16 -0
- data/ext/IAccessibleDLL/IAccessibleDLL/targetver.h +8 -0
- data/ext/IAccessibleDLL/Release/IAccessibleDLL.dll +0 -0
- data/ext/IAccessibleDLL/Release/IAccessibleDLL.exp +0 -0
- data/ext/IAccessibleDLL/Release/IAccessibleDLL.lib +0 -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 +167 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/DataEntryForm.cs +45 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/DataEntryForm.resx +120 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/MainFormWindow.Designer.cs +278 -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/Debug/WindowsForms.exe +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/bin/Debug/WindowsForms.pdb +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/bin/Debug/WindowsForms.vshost.exe +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/bin/Debug/WindowsForms.vshost.exe.manifest +11 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/GenerateResource.read.1.tlog +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/GenerateResource.write.1.tlog +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/ResolveAssemblyReference.cache +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.AboutBox.resources +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.DataEntryForm.resources +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.MainFormWindow.resources +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.PersonForm.resources +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.Properties.Resources.resources +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.SimpleElementsForm.resources +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.csproj.FileListAbsolute.txt +25 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.exe +0 -0
- data/ext/WindowsForms/src/WindowsForms/WindowsForms/obj/x86/Debug/WindowsForms.pdb +0 -0
- data/lib/{RAutomation.rb → rautomation.rb} +3 -1
- data/lib/rautomation/adapter/autoit/button.rb +7 -4
- data/lib/rautomation/adapter/autoit/locators.rb +4 -2
- data/lib/rautomation/adapter/autoit/text_field.rb +8 -5
- data/lib/rautomation/adapter/autoit/window.rb +23 -7
- data/lib/rautomation/adapter/win_ffi.rb +9 -3
- data/lib/rautomation/adapter/win_ffi/button.rb +3 -34
- data/lib/rautomation/adapter/win_ffi/button_helper.rb +24 -0
- data/lib/rautomation/adapter/win_ffi/checkbox.rb +12 -0
- data/lib/rautomation/adapter/win_ffi/constants.rb +21 -0
- data/lib/rautomation/adapter/win_ffi/control.rb +46 -0
- data/lib/rautomation/adapter/win_ffi/functions.rb +52 -1
- data/lib/rautomation/adapter/win_ffi/locators.rb +2 -1
- data/lib/rautomation/adapter/win_ffi/radio.rb +12 -0
- data/lib/rautomation/adapter/win_ffi/select_list.rb +64 -0
- data/lib/rautomation/adapter/win_ffi/table.rb +18 -0
- data/lib/rautomation/adapter/win_ffi/text_field.rb +4 -20
- data/lib/rautomation/adapter/win_ffi/window.rb +48 -10
- data/lib/rautomation/element_collections.rb +44 -0
- data/lib/rautomation/window.rb +29 -5
- data/spec/adapter/win_ffi/checkbox_spec.rb +29 -0
- data/spec/adapter/win_ffi/radio_spec.rb +21 -0
- data/spec/adapter/win_ffi/select_list_spec.rb +41 -0
- data/spec/adapter/win_ffi/table_spec.rb +20 -0
- data/spec/adapter/win_ffi/window_spec.rb +6 -12
- data/spec/button_spec.rb +28 -20
- data/spec/buttons_spec.rb +21 -0
- data/spec/spec_helper.rb +46 -37
- data/spec/text_field_spec.rb +11 -11
- data/spec/text_fields_spec.rb +22 -0
- data/spec/window_spec.rb +11 -19
- data/spec/windows_spec.rb +55 -0
- metadata +84 -9
- data/.gitignore +0 -25
- data/rautomation.gemspec +0 -90
- data/spec/test.html +0 -15
Binary file
|
@@ -0,0 +1,80 @@
|
|
1
|
+
namespace WindowsForms
|
2
|
+
{
|
3
|
+
partial class AboutBox
|
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
|
+
protected override void Dispose(bool disposing)
|
14
|
+
{
|
15
|
+
if (disposing && (components != null))
|
16
|
+
{
|
17
|
+
components.Dispose();
|
18
|
+
}
|
19
|
+
base.Dispose(disposing);
|
20
|
+
}
|
21
|
+
|
22
|
+
#region Windows Form Designer generated code
|
23
|
+
|
24
|
+
/// <summary>
|
25
|
+
/// Required method for Designer support - do not modify
|
26
|
+
/// the contents of this method with the code editor.
|
27
|
+
/// </summary>
|
28
|
+
private void InitializeComponent()
|
29
|
+
{
|
30
|
+
this.label1 = new System.Windows.Forms.Label();
|
31
|
+
this.button1 = new System.Windows.Forms.Button();
|
32
|
+
this.SuspendLayout();
|
33
|
+
//
|
34
|
+
// label1
|
35
|
+
//
|
36
|
+
this.label1.AutoSize = true;
|
37
|
+
this.label1.Location = new System.Drawing.Point(12, 9);
|
38
|
+
this.label1.Name = "label1";
|
39
|
+
this.label1.Size = new System.Drawing.Size(303, 13);
|
40
|
+
this.label1.TabIndex = 0;
|
41
|
+
this.label1.Text = "This is the about dialog for the RAutomation sample application";
|
42
|
+
//
|
43
|
+
// button1
|
44
|
+
//
|
45
|
+
this.button1.Location = new System.Drawing.Point(141, 80);
|
46
|
+
this.button1.Name = "button1";
|
47
|
+
this.button1.Size = new System.Drawing.Size(75, 23);
|
48
|
+
this.button1.TabIndex = 1;
|
49
|
+
this.button1.Text = "OK";
|
50
|
+
this.button1.UseVisualStyleBackColor = true;
|
51
|
+
this.button1.Click += new System.EventHandler(this.button1_Click);
|
52
|
+
//
|
53
|
+
// AboutBox
|
54
|
+
//
|
55
|
+
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
56
|
+
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
57
|
+
this.ClientSize = new System.Drawing.Size(339, 115);
|
58
|
+
this.Controls.Add(this.button1);
|
59
|
+
this.Controls.Add(this.label1);
|
60
|
+
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
61
|
+
this.MaximizeBox = false;
|
62
|
+
this.MinimizeBox = false;
|
63
|
+
this.Name = "AboutBox";
|
64
|
+
this.Padding = new System.Windows.Forms.Padding(9);
|
65
|
+
this.ShowIcon = false;
|
66
|
+
this.ShowInTaskbar = false;
|
67
|
+
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
68
|
+
this.Text = "About";
|
69
|
+
this.ResumeLayout(false);
|
70
|
+
this.PerformLayout();
|
71
|
+
|
72
|
+
}
|
73
|
+
|
74
|
+
#endregion
|
75
|
+
|
76
|
+
private System.Windows.Forms.Label label1;
|
77
|
+
private System.Windows.Forms.Button button1;
|
78
|
+
|
79
|
+
}
|
80
|
+
}
|
@@ -0,0 +1,103 @@
|
|
1
|
+
using System;
|
2
|
+
using System.Collections.Generic;
|
3
|
+
using System.ComponentModel;
|
4
|
+
using System.Drawing;
|
5
|
+
using System.Linq;
|
6
|
+
using System.Reflection;
|
7
|
+
using System.Windows.Forms;
|
8
|
+
|
9
|
+
namespace WindowsForms
|
10
|
+
{
|
11
|
+
partial class AboutBox : Form
|
12
|
+
{
|
13
|
+
public AboutBox()
|
14
|
+
{
|
15
|
+
InitializeComponent();
|
16
|
+
}
|
17
|
+
|
18
|
+
#region Assembly Attribute Accessors
|
19
|
+
|
20
|
+
public string AssemblyTitle
|
21
|
+
{
|
22
|
+
get
|
23
|
+
{
|
24
|
+
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
|
25
|
+
if (attributes.Length > 0)
|
26
|
+
{
|
27
|
+
AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)attributes[0];
|
28
|
+
if (titleAttribute.Title != "")
|
29
|
+
{
|
30
|
+
return titleAttribute.Title;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
public string AssemblyVersion
|
38
|
+
{
|
39
|
+
get
|
40
|
+
{
|
41
|
+
return Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
public string AssemblyDescription
|
46
|
+
{
|
47
|
+
get
|
48
|
+
{
|
49
|
+
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false);
|
50
|
+
if (attributes.Length == 0)
|
51
|
+
{
|
52
|
+
return "";
|
53
|
+
}
|
54
|
+
return ((AssemblyDescriptionAttribute)attributes[0]).Description;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
public string AssemblyProduct
|
59
|
+
{
|
60
|
+
get
|
61
|
+
{
|
62
|
+
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false);
|
63
|
+
if (attributes.Length == 0)
|
64
|
+
{
|
65
|
+
return "";
|
66
|
+
}
|
67
|
+
return ((AssemblyProductAttribute)attributes[0]).Product;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
public string AssemblyCopyright
|
72
|
+
{
|
73
|
+
get
|
74
|
+
{
|
75
|
+
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
|
76
|
+
if (attributes.Length == 0)
|
77
|
+
{
|
78
|
+
return "";
|
79
|
+
}
|
80
|
+
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
public string AssemblyCompany
|
85
|
+
{
|
86
|
+
get
|
87
|
+
{
|
88
|
+
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false);
|
89
|
+
if (attributes.Length == 0)
|
90
|
+
{
|
91
|
+
return "";
|
92
|
+
}
|
93
|
+
return ((AssemblyCompanyAttribute)attributes[0]).Company;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
#endregion
|
97
|
+
|
98
|
+
private void button1_Click(object sender, EventArgs e)
|
99
|
+
{
|
100
|
+
this.Close();
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
@@ -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,167 @@
|
|
1
|
+
namespace WindowsForms
|
2
|
+
{
|
3
|
+
partial class DataEntryForm
|
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
|
+
System.Windows.Forms.ListViewItem listViewItem3 = new System.Windows.Forms.ListViewItem(new string[] {
|
32
|
+
"John Doe",
|
33
|
+
"12/15/1967"}, -1);
|
34
|
+
System.Windows.Forms.ListViewItem listViewItem4 = new System.Windows.Forms.ListViewItem(new string[] {
|
35
|
+
"Anna Doe",
|
36
|
+
"3/4/1975"}, -1);
|
37
|
+
this.deleteItemButton = new System.Windows.Forms.Button();
|
38
|
+
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
39
|
+
this.addItemButton = new System.Windows.Forms.Button();
|
40
|
+
this.personListView = new System.Windows.Forms.ListView();
|
41
|
+
this.columnName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
42
|
+
this.columnDateOfBirth = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
43
|
+
this.closeDataEntryFormButton = new System.Windows.Forms.Button();
|
44
|
+
this.maskedTextBox1 = new System.Windows.Forms.MaskedTextBox();
|
45
|
+
this.label1 = new System.Windows.Forms.Label();
|
46
|
+
this.groupBox3.SuspendLayout();
|
47
|
+
this.SuspendLayout();
|
48
|
+
//
|
49
|
+
// deleteItemButton
|
50
|
+
//
|
51
|
+
this.deleteItemButton.Location = new System.Drawing.Point(334, 55);
|
52
|
+
this.deleteItemButton.Name = "deleteItemButton";
|
53
|
+
this.deleteItemButton.Size = new System.Drawing.Size(75, 23);
|
54
|
+
this.deleteItemButton.TabIndex = 2;
|
55
|
+
this.deleteItemButton.Text = "Delete";
|
56
|
+
this.deleteItemButton.UseVisualStyleBackColor = true;
|
57
|
+
this.deleteItemButton.Click += new System.EventHandler(this.deleteItemButton_Click);
|
58
|
+
//
|
59
|
+
// groupBox3
|
60
|
+
//
|
61
|
+
this.groupBox3.Controls.Add(this.deleteItemButton);
|
62
|
+
this.groupBox3.Controls.Add(this.addItemButton);
|
63
|
+
this.groupBox3.Controls.Add(this.personListView);
|
64
|
+
this.groupBox3.Location = new System.Drawing.Point(135, 12);
|
65
|
+
this.groupBox3.Name = "groupBox3";
|
66
|
+
this.groupBox3.Size = new System.Drawing.Size(415, 114);
|
67
|
+
this.groupBox3.TabIndex = 9;
|
68
|
+
this.groupBox3.TabStop = false;
|
69
|
+
this.groupBox3.Text = "List of items";
|
70
|
+
//
|
71
|
+
// addItemButton
|
72
|
+
//
|
73
|
+
this.addItemButton.Location = new System.Drawing.Point(334, 26);
|
74
|
+
this.addItemButton.Name = "addItemButton";
|
75
|
+
this.addItemButton.Size = new System.Drawing.Size(75, 23);
|
76
|
+
this.addItemButton.TabIndex = 1;
|
77
|
+
this.addItemButton.Text = "Add ...";
|
78
|
+
this.addItemButton.UseVisualStyleBackColor = true;
|
79
|
+
this.addItemButton.Click += new System.EventHandler(this.addItemButton_Click);
|
80
|
+
//
|
81
|
+
// personListView
|
82
|
+
//
|
83
|
+
this.personListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
|
84
|
+
this.columnName,
|
85
|
+
this.columnDateOfBirth});
|
86
|
+
this.personListView.GridLines = true;
|
87
|
+
this.personListView.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
|
88
|
+
this.personListView.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
|
89
|
+
listViewItem3,
|
90
|
+
listViewItem4});
|
91
|
+
this.personListView.Location = new System.Drawing.Point(6, 26);
|
92
|
+
this.personListView.Name = "personListView";
|
93
|
+
this.personListView.Size = new System.Drawing.Size(314, 74);
|
94
|
+
this.personListView.TabIndex = 0;
|
95
|
+
this.personListView.UseCompatibleStateImageBehavior = false;
|
96
|
+
this.personListView.View = System.Windows.Forms.View.Details;
|
97
|
+
//
|
98
|
+
// columnName
|
99
|
+
//
|
100
|
+
this.columnName.Text = "Name";
|
101
|
+
this.columnName.Width = 200;
|
102
|
+
//
|
103
|
+
// columnDateOfBirth
|
104
|
+
//
|
105
|
+
this.columnDateOfBirth.Text = "Date of birth";
|
106
|
+
this.columnDateOfBirth.Width = 100;
|
107
|
+
//
|
108
|
+
// closeDataEntryFormButton
|
109
|
+
//
|
110
|
+
this.closeDataEntryFormButton.Location = new System.Drawing.Point(12, 12);
|
111
|
+
this.closeDataEntryFormButton.Name = "closeDataEntryFormButton";
|
112
|
+
this.closeDataEntryFormButton.Size = new System.Drawing.Size(95, 23);
|
113
|
+
this.closeDataEntryFormButton.TabIndex = 11;
|
114
|
+
this.closeDataEntryFormButton.Text = "Close";
|
115
|
+
this.closeDataEntryFormButton.UseVisualStyleBackColor = true;
|
116
|
+
this.closeDataEntryFormButton.Click += new System.EventHandler(this.closeDataEntryFormButton_Click);
|
117
|
+
//
|
118
|
+
// maskedTextBox1
|
119
|
+
//
|
120
|
+
this.maskedTextBox1.Location = new System.Drawing.Point(254, 147);
|
121
|
+
this.maskedTextBox1.Mask = "(999) 000-0000";
|
122
|
+
this.maskedTextBox1.Name = "maskedTextBox1";
|
123
|
+
this.maskedTextBox1.Size = new System.Drawing.Size(100, 20);
|
124
|
+
this.maskedTextBox1.TabIndex = 12;
|
125
|
+
//
|
126
|
+
// label1
|
127
|
+
//
|
128
|
+
this.label1.AutoSize = true;
|
129
|
+
this.label1.Location = new System.Drawing.Point(138, 150);
|
130
|
+
this.label1.Name = "label1";
|
131
|
+
this.label1.Size = new System.Drawing.Size(76, 13);
|
132
|
+
this.label1.TabIndex = 13;
|
133
|
+
this.label1.Text = "Phone number";
|
134
|
+
//
|
135
|
+
// DataEntryForm
|
136
|
+
//
|
137
|
+
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
138
|
+
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
139
|
+
this.ClientSize = new System.Drawing.Size(724, 474);
|
140
|
+
this.Controls.Add(this.label1);
|
141
|
+
this.Controls.Add(this.maskedTextBox1);
|
142
|
+
this.Controls.Add(this.closeDataEntryFormButton);
|
143
|
+
this.Controls.Add(this.groupBox3);
|
144
|
+
this.MaximizeBox = false;
|
145
|
+
this.MinimizeBox = false;
|
146
|
+
this.Name = "DataEntryForm";
|
147
|
+
this.ShowInTaskbar = false;
|
148
|
+
this.Text = "DataEntryForm";
|
149
|
+
this.groupBox3.ResumeLayout(false);
|
150
|
+
this.ResumeLayout(false);
|
151
|
+
this.PerformLayout();
|
152
|
+
|
153
|
+
}
|
154
|
+
|
155
|
+
#endregion
|
156
|
+
|
157
|
+
private System.Windows.Forms.Button deleteItemButton;
|
158
|
+
private System.Windows.Forms.GroupBox groupBox3;
|
159
|
+
private System.Windows.Forms.Button addItemButton;
|
160
|
+
private System.Windows.Forms.ListView personListView;
|
161
|
+
private System.Windows.Forms.ColumnHeader columnName;
|
162
|
+
private System.Windows.Forms.ColumnHeader columnDateOfBirth;
|
163
|
+
private System.Windows.Forms.Button closeDataEntryFormButton;
|
164
|
+
private System.Windows.Forms.MaskedTextBox maskedTextBox1;
|
165
|
+
private System.Windows.Forms.Label label1;
|
166
|
+
}
|
167
|
+
}
|