📄 filterform.cs
字号:
///GeoCon, free tool to create gml & svg from gis files.
///Copyright(C) 2005 Amri Rosyada
///Distributed under GNU-LGPL, see a copy of the license in root directory
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using GeoCon.Data;
namespace GeoCon
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class FilterForm : System.Windows.Forms.Form
{
public string FilterString
{
get{return textBox1.Text;}
set{textBox1.Text=value;}
}
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Button buttonApplyFilter;
private System.Windows.Forms.Button buttonClearFilter;
private System.Windows.Forms.Button button1;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public FilterForm()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
this.buttonApplyFilter.Click+=new EventHandler(buttonApplyFilter_Click);
//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <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.textBox1 = new System.Windows.Forms.TextBox();
this.buttonApplyFilter = new System.Windows.Forms.Button();
this.buttonClearFilter = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(8, 8);
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(224, 80);
this.textBox1.TabIndex = 0;
this.textBox1.Text = "";
//
// buttonApplyFilter
//
this.buttonApplyFilter.Location = new System.Drawing.Point(112, 96);
this.buttonApplyFilter.Name = "buttonApplyFilter";
this.buttonApplyFilter.Size = new System.Drawing.Size(120, 24);
this.buttonApplyFilter.TabIndex = 1;
this.buttonApplyFilter.Text = "Set Filter";
//
// buttonClearFilter
//
this.buttonClearFilter.Location = new System.Drawing.Point(8, 96);
this.buttonClearFilter.Name = "buttonClearFilter";
this.buttonClearFilter.Size = new System.Drawing.Size(48, 24);
this.buttonClearFilter.TabIndex = 3;
this.buttonClearFilter.Text = "clear";
this.buttonClearFilter.Click += new System.EventHandler(this.buttonClearFilter_Click);
//
// button1
//
this.button1.Location = new System.Drawing.Point(72, 96);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(24, 24);
this.button1.TabIndex = 4;
this.button1.Text = "?";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// FilterForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(240, 126);
this.Controls.Add(this.button1);
this.Controls.Add(this.buttonClearFilter);
this.Controls.Add(this.buttonApplyFilter);
this.Controls.Add(this.textBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "FilterForm";
this.Text = "Filter";
this.ResumeLayout(false);
}
#endregion
private void buttonApplyFilter_Click(object sender, EventArgs e)
{
MainForm mf = (MainForm)this.Owner;
mf.RefreshFilter(this.FilterString);
}
private void buttonClearFilter_Click(object sender, System.EventArgs e)
{
this.FilterString="";
}
private void button1_Click(object sender, System.EventArgs e)
{
Help.ShowHelp(this, Application.StartupPath+System.IO.Path.DirectorySeparatorChar+"geoCon.chm","Filter.htm");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -