#region Disclaimer / License
// Copyright (C) 2009, Kenneth Skovhede
// http://www.hexad.dk, opensource@hexad.dk
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
//
#endregion
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace OSGeo.MapGuide.Maestro.ResourceEditors.FeatureSourceEditors.Gdal
{
///
/// Summary description for AddFilenames.
///
public class AddFilenames : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Panel ButtonPanel;
private System.Windows.Forms.Button CancelBtn;
private System.Windows.Forms.Button OKBtn;
public System.Windows.Forms.TextBox FileList;
///
/// Required designer variable.
///
private System.ComponentModel.Container components = null;
public AddFilenames()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
///
/// Clean up any resources being used.
///
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#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()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AddFilenames));
this.label1 = new System.Windows.Forms.Label();
this.FileList = new System.Windows.Forms.TextBox();
this.ButtonPanel = new System.Windows.Forms.Panel();
this.CancelBtn = new System.Windows.Forms.Button();
this.OKBtn = new System.Windows.Forms.Button();
this.ButtonPanel.SuspendLayout();
this.SuspendLayout();
//
// label1
//
resources.ApplyResources(this.label1, "label1");
this.label1.Name = "label1";
//
// FileList
//
resources.ApplyResources(this.FileList, "FileList");
this.FileList.Name = "FileList";
this.FileList.TextChanged += new System.EventHandler(this.FileList_TextChanged);
//
// ButtonPanel
//
resources.ApplyResources(this.ButtonPanel, "ButtonPanel");
this.ButtonPanel.Controls.Add(this.CancelBtn);
this.ButtonPanel.Controls.Add(this.OKBtn);
this.ButtonPanel.Name = "ButtonPanel";
//
// CancelBtn
//
resources.ApplyResources(this.CancelBtn, "CancelBtn");
this.CancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.CancelBtn.Name = "CancelBtn";
//
// OKBtn
//
resources.ApplyResources(this.OKBtn, "OKBtn");
this.OKBtn.Name = "OKBtn";
this.OKBtn.Click += new System.EventHandler(this.OKBtn_Click);
//
// AddFilenames
//
resources.ApplyResources(this, "$this");
this.Controls.Add(this.ButtonPanel);
this.Controls.Add(this.FileList);
this.Controls.Add(this.label1);
this.Name = "AddFilenames";
this.ButtonPanel.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private void FileList_TextChanged(object sender, System.EventArgs e)
{
OKBtn.Enabled = FileList.Text.Trim().Length > 0;
}
private void OKBtn_Click(object sender, System.EventArgs e)
{
this.DialogResult = DialogResult.OK;
this.Close();
}
}
}