|
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace SourceGrid.TypeCreator
{
/// <summary>
/// Summary description for frmCellProperty.
/// </summary>
internal class frmBrowseInstance : System.Windows.Forms.Form
{
private System.Windows.Forms.Button btOK;
private SourceGrid.PropertyGridEx propertyGridEx1;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public frmBrowseInstance()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.btOK = new System.Windows.Forms.Button();
this.propertyGridEx1 = new SourceGrid.PropertyGridEx();
this.SuspendLayout();
//
// btOK
//
this.btOK.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right);
this.btOK.BackColor = System.Drawing.SystemColors.Control;
this.btOK.DialogResult = System.Windows.Forms.DialogResult.OK;
this.btOK.Location = new System.Drawing.Point(296, 272);
this.btOK.Name = "btOK";
this.btOK.Size = new System.Drawing.Size(72, 24);
this.btOK.TabIndex = 2;
this.btOK.Text = "&OK";
//
// propertyGridEx1
//
this.propertyGridEx1.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right);
this.propertyGridEx1.Location = new System.Drawing.Point(8, 8);
this.propertyGridEx1.Name = "propertyGridEx1";
this.propertyGridEx1.Size = new System.Drawing.Size(368, 256);
this.propertyGridEx1.TabIndex = 3;
//
// frmBrowseInstance
//
this.AcceptButton = this.btOK;
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(378, 304);
this.Controls.AddRange(new System.Windows.Forms.Control[] {
this.propertyGridEx1,
this.btOK});
this.Name = "frmBrowseInstance";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Format Cells Dialog";
this.ResumeLayout(false);
}
#endregion
public void LoadProperties(IWin32Window p_Owner, object p_ObjectInstance, string p_DialogText,TypeCreator p_TypeCreator)
{
Text = p_DialogText;
propertyGridEx1.TypeCreator = p_TypeCreator;
propertyGridEx1.LoadProperties(p_ObjectInstance);
ShowDialog(p_Owner);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.