///
/// Copyright © 2003-2008 JetBrains s.r.o.
/// You may distribute under the terms of the GNU General Public License, as published by the Free Software Foundation, version 2 (see License.txt in the repository root folder).
///
using JetBrains.Omea.GUIControls;
using JetBrains.Omea.OpenAPI;
namespace JetBrains.Omea.DebugPlugin
{
///
/// Summary description for QueryForm.
///
public class QueryForm : DialogBase
{
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
///
/// Required designer variable.
///
private System.ComponentModel.Container components = null;
public QueryForm()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
RestoreSettings();
IPropTypeCollection props = Core.ResourceStore.PropTypes;
foreach ( IPropType propType in props )
{
comboBox1.Items.Add( propType.Name );
}
}
///
/// Clean up any resources being used.
///
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
public string PropName { get { return comboBox1.Text; } }
#region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// label1
//
this.label1.Location = new System.Drawing.Point(8, 4);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(148, 20);
this.label1.TabIndex = 0;
this.label1.Text = "Show resources with prop:";
//
// comboBox1
//
this.comboBox1.Location = new System.Drawing.Point(160, 4);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Sorted = true;
this.comboBox1.TabIndex = 1;
//
// button1
//
this.button1.DialogResult = System.Windows.Forms.DialogResult.OK;
this.button1.Location = new System.Drawing.Point(108, 52);
this.button1.Name = "button1";
this.button1.TabIndex = 2;
this.button1.Text = "Ok";
//
// button2
//
this.button2.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.button2.Location = new System.Drawing.Point(200, 52);
this.button2.Name = "button2";
this.button2.TabIndex = 3;
this.button2.Text = "Cancel";
//
// QueryForm
//
this.AcceptButton = this.button1;
this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
this.CancelButton = this.button2;
this.ClientSize = new System.Drawing.Size(316, 90);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Controls.Add(this.comboBox1);
this.Controls.Add(this.label1);
this.Name = "QueryForm";
this.Text = "QueryForm";
this.ResumeLayout(false);
}
#endregion
}
}