?? dataout.cs
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace MKIms3
{
/// <summary>
/// DataOut 的摘要說明。
/// </summary>
public class DataOut : System.Windows.Forms.Form
{
string[] dateset;
/// <summary>
/// 必需的設計器變量。
/// </summary>
///
public SuperMapLib.soDataPump myPump;
private SuperMapLib.soExportParams myExport;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Button btn_url;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Button btn_ok;
private System.Windows.Forms.Button btn_esc;
private System.Windows.Forms.ColumnHeader 源數據集名;
private System.Windows.Forms.ColumnHeader 目標數據集名;
private System.Windows.Forms.ListView listView_data;
private System.Windows.Forms.ComboBox comboBox_file;
private System.Windows.Forms.TextBox txt_url;
private System.Windows.Forms.ComboBox comboBox_unit;
private System.Windows.Forms.Button btn_select_all;
private System.Windows.Forms.Button btn_select_no;
private System.Windows.Forms.ColumnHeader 狀態;
private System.Windows.Forms.PictureBox pictureBox2;
private System.ComponentModel.Container components = null;
public DataOut(string[] dataset)
{
//
// Windows 窗體設計器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 調用后添加任何構造函數代碼
//
this.dateset = dataset;
}
/// <summary>
/// 清理所有正在使用的資源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows 窗體設計器生成的代碼
/// <summary>
/// 設計器支持所需的方法 - 不要使用代碼編輯器修改
/// 此方法的內容。
/// </summary>
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(DataOut));
this.listView_data = new System.Windows.Forms.ListView();
this.目標數據集名 = new System.Windows.Forms.ColumnHeader();
this.源數據集名 = new System.Windows.Forms.ColumnHeader();
this.狀態 = new System.Windows.Forms.ColumnHeader();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.btn_select_no = new System.Windows.Forms.Button();
this.btn_select_all = new System.Windows.Forms.Button();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.comboBox_unit = new System.Windows.Forms.ComboBox();
this.label5 = new System.Windows.Forms.Label();
this.btn_url = new System.Windows.Forms.Button();
this.txt_url = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.comboBox_file = new System.Windows.Forms.ComboBox();
this.label3 = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.btn_ok = new System.Windows.Forms.Button();
this.btn_esc = new System.Windows.Forms.Button();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.SuspendLayout();
//
// listView_data
//
this.listView_data.CheckBoxes = true;
this.listView_data.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.目標數據集名,
this.源數據集名,
this.狀態});
this.listView_data.LabelEdit = true;
this.listView_data.LabelWrap = false;
this.listView_data.Location = new System.Drawing.Point(8, 16);
this.listView_data.Name = "listView_data";
this.listView_data.Size = new System.Drawing.Size(328, 144);
this.listView_data.TabIndex = 0;
this.listView_data.View = System.Windows.Forms.View.Details;
//
// 目標數據集名
//
this.目標數據集名.Text = "目標數據集名";
this.目標數據集名.Width = 123;
//
// 源數據集名
//
this.源數據集名.Text = "源數據集名";
this.源數據集名.Width = 117;
//
// 狀態
//
this.狀態.Text = "狀態";
//
// groupBox1
//
this.groupBox1.Controls.Add(this.btn_select_no);
this.groupBox1.Controls.Add(this.btn_select_all);
this.groupBox1.Controls.Add(this.listView_data);
this.groupBox1.Location = new System.Drawing.Point(192, 8);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(368, 168);
this.groupBox1.TabIndex = 2;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "源數據集";
//
// btn_select_no
//
this.btn_select_no.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_select_no.Location = new System.Drawing.Point(338, 72);
this.btn_select_no.Name = "btn_select_no";
this.btn_select_no.Size = new System.Drawing.Size(24, 40);
this.btn_select_no.TabIndex = 2;
this.btn_select_no.Text = "反選";
this.btn_select_no.Click += new System.EventHandler(this.btn_select_no_Click);
//
// btn_select_all
//
this.btn_select_all.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_select_all.Location = new System.Drawing.Point(338, 24);
this.btn_select_all.Name = "btn_select_all";
this.btn_select_all.Size = new System.Drawing.Size(24, 40);
this.btn_select_all.TabIndex = 1;
this.btn_select_all.Text = "全選";
this.btn_select_all.Click += new System.EventHandler(this.btn_select_all_Click);
//
// groupBox2
//
this.groupBox2.Controls.Add(this.comboBox_unit);
this.groupBox2.Controls.Add(this.label5);
this.groupBox2.Controls.Add(this.btn_url);
this.groupBox2.Controls.Add(this.txt_url);
this.groupBox2.Controls.Add(this.label4);
this.groupBox2.Controls.Add(this.comboBox_file);
this.groupBox2.Controls.Add(this.label3);
this.groupBox2.Location = new System.Drawing.Point(192, 184);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(368, 80);
this.groupBox2.TabIndex = 3;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "輸出";
//
// comboBox_unit
//
this.comboBox_unit.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox_unit.Items.AddRange(new object[] {
"度",
"毫米",
"厘米",
"英寸",
"分米",
"英尺",
"碼",
"米",
"千米",
"英里"});
this.comboBox_unit.Location = new System.Drawing.Point(272, 17);
this.comboBox_unit.Name = "comboBox_unit";
this.comboBox_unit.Size = new System.Drawing.Size(88, 20);
this.comboBox_unit.TabIndex = 6;
this.comboBox_unit.SelectedIndexChanged += new System.EventHandler(this.comboBox_unit_SelectedIndexChanged);
//
// label5
//
this.label5.Location = new System.Drawing.Point(240, 22);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(32, 16);
this.label5.TabIndex = 5;
this.label5.Text = "單位";
//
// btn_url
//
this.btn_url.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_url.Location = new System.Drawing.Point(318, 45);
this.btn_url.Name = "btn_url";
this.btn_url.Size = new System.Drawing.Size(40, 21);
this.btn_url.TabIndex = 4;
this.btn_url.Text = ">>";
this.btn_url.Click += new System.EventHandler(this.btn_url_Click);
//
// txt_url
//
this.txt_url.Location = new System.Drawing.Point(72, 46);
this.txt_url.Name = "txt_url";
this.txt_url.Size = new System.Drawing.Size(240, 21);
this.txt_url.TabIndex = 3;
this.txt_url.Text = "";
//
// label4
//
this.label4.Location = new System.Drawing.Point(8, 51);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(56, 16);
this.label4.TabIndex = 2;
this.label4.Text = "輸出目錄";
//
// comboBox_file
//
this.comboBox_file.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox_file.Items.AddRange(new object[] {
"MapInfo的mif文件(*.mif)",
"國標矢量文件 (*.VCT) ",
"AutoCAD的DXF(*.dxf)",
"mapgis明碼交換格式文件 ",
"ArcView的shp格式(*.shp)",
"ArcInfo的Coverage||ArcInfo交換格式E00(*.e00)",
"位圖文件(*.bmp)"});
this.comboBox_file.Location = new System.Drawing.Point(72, 18);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -