namespace pop { using System; using System.Collections; using System.ComponentModel; using System.Drawing; using System.Data; using System.Windows.Forms; public class PersonInputDialog : System.Windows.Forms.Form { private System.ComponentModel.Container components; private System.Windows.Forms.Button iOKButton; private pop.PersonForm iPersonForm; public PersonInputDialog() { InitializeComponent(); } public override void Dispose() { base.Dispose(); components.Dispose(); } private void InitializeComponent() { this.components = new System.ComponentModel.Container (); this.iOKButton = new System.Windows.Forms.Button (); this.iPersonForm = new pop.PersonForm (); //@this.TrayHeight = 0; //@this.TrayLargeIcon = false; //@this.TrayAutoArrange = true; iOKButton.Location = new System.Drawing.Point (176, 200); iOKButton.DialogResult = System.Windows.Forms.DialogResult.OK; iOKButton.Size = new System.Drawing.Size (75, 23); iOKButton.TabIndex = 1; iOKButton.Text = "OK"; iOKButton.Click += new System.EventHandler (this.iOKButton_Click); iPersonForm.Location = new System.Drawing.Point (24, 24); iPersonForm.Size = new System.Drawing.Size (368, 160); iPersonForm.TabIndex = 0; iPersonForm.Text = "PersonForm"; this.AutoScaleBaseSize = new System.Drawing.Size (5, 13); this.ClientSize = new System.Drawing.Size (464, 245); this.Controls.Add (this.iOKButton); this.Controls.Add (this.iPersonForm); } protected void iOKButton_Click (object sender, System.EventArgs e) { } public Person Person { get { return iPersonForm.Person; } } } }