namespace pop { using System; using System.Collections; using System.ComponentModel; using System.Drawing; using System.Data; using System.Windows.Forms; public class PersonOutputDialog : System.Windows.Forms.Form { private System.ComponentModel.Container components; private System.Windows.Forms.Button iOKButton; private pop.PersonForm iPersonForm; public PersonOutputDialog(Person pPerson) { InitializeComponent(); iPersonForm.Person = pPerson; } public override void Dispose() { base.Dispose(); components.Dispose(); } private void InitializeComponent() { this.components = new System.ComponentModel.Container (); this.iPersonForm = new pop.PersonForm (); this.iOKButton = new System.Windows.Forms.Button (); //@this.TrayHeight = 0; //@this.TrayLargeIcon = false; //@this.TrayAutoArrange = true; iPersonForm.Location = new System.Drawing.Point (24, 24); iPersonForm.Size = new System.Drawing.Size (368, 160); iPersonForm.TabIndex = 0; iPersonForm.Text = "PersonForm"; 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"; 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) { } } }