You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1448 lines
48 KiB
1448 lines
48 KiB
using System; |
|
using System.Collections.Generic; |
|
using System.ComponentModel; |
|
using System.Diagnostics; |
|
using System.Drawing; |
|
using System.IO; |
|
using System.Threading; |
|
using System.Windows.Forms; |
|
using ArcShapeFileDLL; |
|
using Common; |
|
//using Kingo.Mobile.Security; |
|
using Kingo.Mobile.Shape2KOTool.KoDataBase; |
|
using Kingo.Mobile.Shape2KOTool.SymbolSetting; |
|
using Kingo.Mobile.Shape2KOTool.XSDClass; |
|
using Newtonsoft.Json; |
|
using Newtonsoft.Json.Converters; |
|
using Newtonsoft.Json.Linq; |
|
using Newtonsoft.Json.Serialization; |
|
|
|
namespace Kingo.Mobile.Shape2KOTool |
|
{ |
|
// Token: 0x0200003A RID: 58 |
|
public class frmDataSetting : UserControl |
|
{ |
|
// Token: 0x060001B1 RID: 433 RVA: 0x00005D04 File Offset: 0x00003F04 |
|
public frmDataSetting() |
|
{ |
|
this.InitializeComponent(); |
|
//CLicense clicense = new CLicense(); |
|
//if (!clicense.AnalyseLicValid(Application.StartupPath + "\\koviewer.lic", null, null)) |
|
//{ |
|
//} |
|
this.comboBoxSpatialRef.DataSource = SpatialRefrenceStruct.GetAllData(); |
|
this.comboBoxSpatialRef.DisplayMember = "Description"; |
|
this.comboBoxSpatialRef.ValueMember = "WKID"; |
|
this.SetOutPutDir(Application.StartupPath + "\\KOFDT.ko"); |
|
} |
|
|
|
// Token: 0x060001B2 RID: 434 RVA: 0x00005DB0 File Offset: 0x00003FB0 |
|
private void btnOpenFile_Click(object sender, EventArgs e) |
|
{ |
|
if (this.openFileDialog.ShowDialog() == DialogResult.OK) |
|
{ |
|
this.txtFilePath.Text = this.openFileDialog.FileName; |
|
this.BindingData(); |
|
} |
|
} |
|
|
|
// Token: 0x060001B3 RID: 435 RVA: 0x00005DF4 File Offset: 0x00003FF4 |
|
private EnvelopeN GetExtent(ShapeFiles shapeFile) |
|
{ |
|
shapeFile.MoveFirst(); |
|
EnvelopeN result; |
|
if (shapeFile.RecordCount == 0) |
|
{ |
|
result = new EnvelopeN(); |
|
} |
|
else |
|
{ |
|
EnvelopeN envelopeN = new EnvelopeN |
|
{ |
|
XMax = shapeFile.xMax, |
|
XMin = shapeFile.xMin, |
|
YMax = shapeFile.yMax, |
|
YMin = shapeFile.yMin |
|
}; |
|
shapeFile.MoveNext(); |
|
while (!shapeFile.EOF) |
|
{ |
|
EnvelopeN extent = new EnvelopeN |
|
{ |
|
XMax = shapeFile.xMax, |
|
XMin = shapeFile.xMin, |
|
YMax = shapeFile.yMax, |
|
YMin = shapeFile.yMin |
|
}; |
|
envelopeN = envelopeN.Union(extent); |
|
shapeFile.MoveNext(); |
|
} |
|
result = envelopeN; |
|
} |
|
return result; |
|
} |
|
|
|
// Token: 0x060001B4 RID: 436 RVA: 0x00005ED0 File Offset: 0x000040D0 |
|
private void BindingData() |
|
{ |
|
if (File.Exists(this.txtFilePath.Text)) |
|
{ |
|
this.pSpatialDataSource = new SHPDataSource(); |
|
this.pSpatialDataSource.DataSourcePath = this.txtFilePath.Text; |
|
this.pSpatialDataSource.Open(); |
|
try |
|
{ |
|
this.txtRecordsCount.Text = string.Format("共{0}条记录", this.pSpatialDataSource.RecordCount); |
|
this.filedInfoBindingSource.DataSource = null; |
|
this.filedInfoBindingSource.DataSource = this.pSpatialDataSource.Fields; |
|
this.filedInfoBindingSourceMainField.DataSource = null; |
|
this.filedInfoBindingSourceMainField.DataSource = this.pSpatialDataSource.Fields; |
|
if (this.pSpatialDataSource.SpatialReference != null) |
|
{ |
|
this.comboBoxSpatialRef.SelectedItem = this.pSpatialDataSource.SpatialReference; |
|
} |
|
} |
|
catch (Exception ex) |
|
{ |
|
} |
|
finally |
|
{ |
|
this.pSpatialDataSource.Close(); |
|
} |
|
} |
|
} |
|
|
|
// Token: 0x060001B5 RID: 437 RVA: 0x00005FF8 File Offset: 0x000041F8 |
|
private void btnMove_Click(object sender, EventArgs e) |
|
{ |
|
if (this.dgvFilelds.SelectedRows.Count == 1) |
|
{ |
|
ShapeFieldInfo shapeFieldInfo = this.dgvFilelds.SelectedRows[0].DataBoundItem as ShapeFieldInfo; |
|
if (shapeFieldInfo != null) |
|
{ |
|
List<ShapeFieldInfo> list = this.filedInfoBindingSource.DataSource as List<ShapeFieldInfo>; |
|
int num = list.IndexOf(shapeFieldInfo); |
|
if (sender == this.btnMoveUp) |
|
{ |
|
if (num == 0) |
|
{ |
|
return; |
|
} |
|
list.Reverse(num - 1, 2); |
|
num--; |
|
} |
|
else if (sender == this.btnMoveDown) |
|
{ |
|
if (num == list.Count - 1) |
|
{ |
|
return; |
|
} |
|
list.Reverse(num, 2); |
|
num++; |
|
} |
|
else if (sender == this.btnMoveTop) |
|
{ |
|
if (num == 0) |
|
{ |
|
return; |
|
} |
|
list.Remove(shapeFieldInfo); |
|
list.Insert(0, shapeFieldInfo); |
|
num = 0; |
|
} |
|
else if (sender == this.btnMoveButtom) |
|
{ |
|
if (num == list.Count - 1) |
|
{ |
|
return; |
|
} |
|
list.Remove(shapeFieldInfo); |
|
list.Add(shapeFieldInfo); |
|
num = list.Count - 1; |
|
} |
|
this.filedInfoBindingSource.ResetBindings(false); |
|
this.filedInfoBindingSource.Position = num; |
|
this.filedInfoBindingSourceMainField.ResetBindings(false); |
|
} |
|
} |
|
} |
|
|
|
// Token: 0x060001B6 RID: 438 RVA: 0x00006170 File Offset: 0x00004370 |
|
private void btnDeleteFiled_Click(object sender, EventArgs e) |
|
{ |
|
if (this.dgvFilelds.SelectedRows.Count == 1) |
|
{ |
|
ShapeFieldInfo shapeFieldInfo = this.dgvFilelds.SelectedRows[0].DataBoundItem as ShapeFieldInfo; |
|
if (shapeFieldInfo != null) |
|
{ |
|
List<ShapeFieldInfo> list = this.filedInfoBindingSource.DataSource as List<ShapeFieldInfo>; |
|
int num = list.IndexOf(shapeFieldInfo); |
|
list.Remove(shapeFieldInfo); |
|
this.filedInfoBindingSource.ResetBindings(false); |
|
if (num < list.Count) |
|
{ |
|
this.filedInfoBindingSource.Position = num; |
|
} |
|
this.filedInfoBindingSourceMainField.ResetBindings(false); |
|
} |
|
} |
|
} |
|
|
|
// Token: 0x060001B7 RID: 439 RVA: 0x0000621D File Offset: 0x0000441D |
|
private void btnReset_Click(object sender, EventArgs e) |
|
{ |
|
this.BindingData(); |
|
} |
|
|
|
// Token: 0x060001B8 RID: 440 RVA: 0x00006227 File Offset: 0x00004427 |
|
private void btnSelectAll_Click(object sender, EventArgs e) |
|
{ |
|
} |
|
|
|
// Token: 0x060001B9 RID: 441 RVA: 0x0000622A File Offset: 0x0000442A |
|
private void btnUnSelectAll_Click(object sender, EventArgs e) |
|
{ |
|
} |
|
|
|
// Token: 0x060001BA RID: 442 RVA: 0x0000622D File Offset: 0x0000442D |
|
private void frmDataSetting_Load(object sender, EventArgs e) |
|
{ |
|
} |
|
|
|
// Token: 0x060001BB RID: 443 RVA: 0x00006230 File Offset: 0x00004430 |
|
private void TestSerializeObject() |
|
{ |
|
ItemInfo itemInfo = new ItemInfo(); |
|
itemInfo.Fields.Add(new FieldNomal()); |
|
SimpleRenderer simpleRenderer = new SimpleRenderer(); |
|
simpleRenderer.Symbol = new SFSymbol(); |
|
itemInfo.DrawingInfo.Renderer = simpleRenderer; |
|
Template template = new Template(); |
|
template.Prototype.Attributes.Add("Name", "313123"); |
|
template.Prototype.Attributes.Add("Date", DateTime.Now); |
|
template.Prototype.Attributes.Add("Age", 27); |
|
itemInfo.Templates.Add(template); |
|
JsonSerializerSettings jsonSerializerSettings = new JsonSerializerSettings(); |
|
StringEnumConverter item = new StringEnumConverter(); |
|
jsonSerializerSettings.Converters.Add(item); |
|
string text = JsonConvert.SerializeObject(itemInfo, jsonSerializerSettings); |
|
} |
|
|
|
// Token: 0x060001BC RID: 444 RVA: 0x00006304 File Offset: 0x00004504 |
|
private void ExtentClassTest() |
|
{ |
|
try |
|
{ |
|
SimpleRenderer simpleRenderer = new SimpleRenderer(); |
|
simpleRenderer.Symbol = new SFSymbol(); |
|
JsonSerializerSettings jsonSerializerSettings = new JsonSerializerSettings(); |
|
StringEnumConverter item = new StringEnumConverter(); |
|
jsonSerializerSettings.Converters.Add(item); |
|
jsonSerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver(); |
|
jsonSerializerSettings.TypeNameHandling = TypeNameHandling.Auto; |
|
string text = JsonConvert.SerializeObject(simpleRenderer, jsonSerializerSettings); |
|
Renderer renderer = (Renderer)JsonConvert.DeserializeObject(text, typeof(SimpleRenderer)); |
|
} |
|
catch (Exception ex) |
|
{ |
|
} |
|
} |
|
|
|
// Token: 0x060001BD RID: 445 RVA: 0x0000638C File Offset: 0x0000458C |
|
private void TestItemInfo() |
|
{ |
|
try |
|
{ |
|
string text = File.ReadAllText("D:\\Users\\Administrator\\Desktop\\杨江川\\xml解析\\分类图片颜色填充_ItemInfo.txt"); |
|
JObject jobject = JObject.Parse(text.ToLower()); |
|
ItemInfo itemInfo = ItemInfo.FromJson(text); |
|
JObject jobject2 = JObject.Parse(itemInfo.ToJson().ToLower()); |
|
if (JToken.DeepEquals(jobject, jobject2)) |
|
{ |
|
} |
|
} |
|
catch (Exception ex) |
|
{ |
|
} |
|
} |
|
|
|
// Token: 0x060001BE RID: 446 RVA: 0x000063F8 File Offset: 0x000045F8 |
|
private void TestAdvDrawInfo() |
|
{ |
|
try |
|
{ |
|
string json = File.ReadAllText("D:\\Users\\Administrator\\Desktop\\杨江川\\xml解析\\分类图片颜色填充_AdvancedDrawingInfo.txt"); |
|
AdvancedDrawingInfo advancedDrawingInfo = AdvancedDrawingInfo.FromJson(json); |
|
} |
|
catch (Exception ex) |
|
{ |
|
} |
|
} |
|
|
|
// Token: 0x060001BF RID: 447 RVA: 0x00006434 File Offset: 0x00004634 |
|
private void TestDEFeatureClassInfo() |
|
{ |
|
try |
|
{ |
|
string path = "D:\\Users\\Administrator\\Desktop\\杨江川\\xml解析\\DEFeatureClassInfo.xml"; |
|
DEFeatureClassInfo defeatureClassInfo = DEFeatureClassInfo.FromXml(File.ReadAllText(path)); |
|
string text = defeatureClassInfo.ToXml(); |
|
} |
|
catch (Exception ex) |
|
{ |
|
} |
|
} |
|
|
|
// Token: 0x060001C0 RID: 448 RVA: 0x00006478 File Offset: 0x00004678 |
|
private void testDataContract() |
|
{ |
|
} |
|
|
|
// Token: 0x060001C1 RID: 449 RVA: 0x000064D8 File Offset: 0x000046D8 |
|
private void btnCreateDatabase_Click(object sender, EventArgs e) |
|
{ |
|
if (File.Exists(this.txtFilePath.Text)) |
|
{ |
|
try |
|
{ |
|
this.CheckBLC(); |
|
} |
|
catch (Exception ex) |
|
{ |
|
MessageBox.Show(ex.Message); |
|
return; |
|
} |
|
if (this.pLayer != null) |
|
{ |
|
try |
|
{ |
|
this.doWorkThread.Abort(); |
|
} |
|
catch (Exception ex) |
|
{ |
|
LogAPI.Debug(ex); |
|
} |
|
finally |
|
{ |
|
this.pLayer.Dispose(); |
|
this.pLayer = null; |
|
} |
|
} |
|
this.pLayer = new KODBFeatureLayer(); |
|
this.pLayer.FieldInfos = (this.filedInfoBindingSource.DataSource as List<ShapeFieldInfo>); |
|
this.pLayer.Render = this.Render; |
|
this.pLayer.MinScale = Convert.ToInt32(this.cboxMinScale.Text); |
|
this.pLayer.MaxScale = Convert.ToInt32(this.cboxMaxScale.Text); |
|
this.pLayer.DisplayField = this.comboBoxMainFileds.Text; |
|
LabelingInfo labelingInfo = this.linkLabelStyle.Tag as LabelingInfo; |
|
if (labelingInfo != null) |
|
{ |
|
this.pLayer.LabelingInfo = labelingInfo; |
|
} |
|
this.pLayer.EncryptData = this.chkBoxEncrypt.Checked; |
|
this.pLayer.WKID = (this.comboBoxSpatialRef.SelectedItem as SpatialRefrenceStruct).WKID; |
|
this.pLayer.OutputFileName = this.tsslOutputDir.ToolTipText; |
|
this.pLayer.SpatialDataSource = this.pSpatialDataSource; |
|
this.doWorkThread = new Thread(new ParameterizedThreadStart(this.CreateLayer)); |
|
this.pLayer.Report += delegate(string s, int c) |
|
{ |
|
base.Invoke(new Action(delegate() |
|
{ |
|
this.txtTipString.Text = s; |
|
})); |
|
}; |
|
this.doWorkThread.Start(this.pLayer); |
|
this.EnableOparation(false); |
|
} |
|
} |
|
|
|
// Token: 0x060001C2 RID: 450 RVA: 0x000066E8 File Offset: 0x000048E8 |
|
private void EnableOparation(bool enable) |
|
{ |
|
this.groupBox1.Enabled = enable; |
|
this.btnOpenFile.Enabled = enable; |
|
this.txtFilePath.Enabled = enable; |
|
this.groupBox2.Enabled = enable; |
|
this.groupBox3.Enabled = enable; |
|
this.groupBox4.Enabled = enable; |
|
this.groupBox5.Enabled = enable; |
|
this.btnCreateDatabase.Enabled = enable; |
|
this.toolStripProgressBar1.Visible = !enable; |
|
this.txtTipString.Visible = !enable; |
|
this.txtTipString.Text = ""; |
|
EventHandler eventHandler = new EventHandler(this.button8_Click); |
|
eventHandler.BeginInvoke(null, null, new AsyncCallback(this.OnAsyncCallback), eventHandler); |
|
} |
|
|
|
// Token: 0x060001C3 RID: 451 RVA: 0x000067B2 File Offset: 0x000049B2 |
|
private void OnAsyncCallback(IAsyncResult ar) |
|
{ |
|
} |
|
|
|
// Token: 0x060001C4 RID: 452 RVA: 0x00006808 File Offset: 0x00004A08 |
|
private void CreateLayer(object param) |
|
{ |
|
KODBFeatureLayer kodbfeatureLayer = param as KODBFeatureLayer; |
|
if (kodbfeatureLayer != null) |
|
{ |
|
try |
|
{ |
|
kodbfeatureLayer.CreateLayerUdp(); |
|
base.Invoke(new Action(delegate() |
|
{ |
|
MessageBox.Show("转换完成!"); |
|
})); |
|
} |
|
catch (Exception ex) |
|
{ |
|
//Exception ex2; |
|
//Exception ex = ex2; |
|
if (Thread.CurrentThread.ThreadState != System.Threading.ThreadState.AbortRequested) |
|
{ |
|
base.Invoke(new Action(delegate() |
|
{ |
|
MessageBox.Show("转换失败!原因:" + ex.Message); |
|
LogAPI.Debug(ex); |
|
})); |
|
} |
|
} |
|
finally |
|
{ |
|
kodbfeatureLayer.Dispose(); |
|
base.Invoke(new Action(delegate() |
|
{ |
|
this.EnableOparation(true); |
|
GC.Collect(); |
|
})); |
|
} |
|
} |
|
} |
|
|
|
// Token: 0x060001C5 RID: 453 RVA: 0x000068F0 File Offset: 0x00004AF0 |
|
private void linkConfigStyle_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) |
|
{ |
|
if (!File.Exists(this.txtFilePath.Text)) |
|
{ |
|
MessageBox.Show(this, "请先选择shape文件!"); |
|
} |
|
else |
|
{ |
|
frmSymbolConfig frmSymbolConfig = new frmSymbolConfig(); |
|
frmSymbolConfig.SpatialDataSource = this.pSpatialDataSource; |
|
frmSymbolConfig.Fields = this.pSpatialDataSource.Fields; |
|
frmSymbolConfig.Renderer = this.Render; |
|
if (frmSymbolConfig.ShowDialog(this) == DialogResult.OK) |
|
{ |
|
if (frmSymbolConfig.Renderer != null) |
|
{ |
|
this.Render = frmSymbolConfig.Renderer; |
|
} |
|
} |
|
} |
|
} |
|
|
|
// Token: 0x060001C6 RID: 454 RVA: 0x00006981 File Offset: 0x00004B81 |
|
private void button8_Click(object sender, EventArgs e) |
|
{ |
|
} |
|
|
|
// Token: 0x060001C7 RID: 455 RVA: 0x00006984 File Offset: 0x00004B84 |
|
private void button9_Click(object sender, EventArgs e) |
|
{ |
|
} |
|
|
|
// Token: 0x060001C8 RID: 456 RVA: 0x00006988 File Offset: 0x00004B88 |
|
public void OnFormClosing(object sender, FormClosingEventArgs e) |
|
{ |
|
if (e.CloseReason == CloseReason.UserClosing && this.doWorkThread != null && this.doWorkThread.ThreadState == System.Threading.ThreadState.Running) |
|
{ |
|
if (MessageBox.Show("转换正在进行中,是否取消转换?", "提示", MessageBoxButtons.YesNo) == DialogResult.Yes) |
|
{ |
|
try |
|
{ |
|
this.doWorkThread.Abort(); |
|
} |
|
catch (Exception e2) |
|
{ |
|
LogAPI.Debug(e2); |
|
} |
|
finally |
|
{ |
|
this.pLayer.Dispose(); |
|
this.doWorkThread = null; |
|
this.pLayer = null; |
|
} |
|
this.EnableOparation(true); |
|
GC.Collect(); |
|
} |
|
e.Cancel = true; |
|
} |
|
} |
|
|
|
// Token: 0x060001C9 RID: 457 RVA: 0x00006A4C File Offset: 0x00004C4C |
|
private void tsslOutputDir_Click(object sender, EventArgs e) |
|
{ |
|
if (this.saveFileDialog1.ShowDialog() == DialogResult.OK) |
|
{ |
|
this.SetOutPutDir(this.saveFileDialog1.FileName); |
|
} |
|
} |
|
|
|
// Token: 0x060001CA RID: 458 RVA: 0x00006A84 File Offset: 0x00004C84 |
|
private void SetOutPutDir(string dir) |
|
{ |
|
this.tsslOutputDir.ToolTipText = dir; |
|
if (dir.Length > 30) |
|
{ |
|
dir = dir.Substring(0, 27) + "…"; |
|
} |
|
this.tsslOutputDir.Text = dir; |
|
} |
|
|
|
// Token: 0x060001CB RID: 459 RVA: 0x00006AD4 File Offset: 0x00004CD4 |
|
private void tsslOutputFolder_Click(object sender, EventArgs e) |
|
{ |
|
Process.Start(Path.GetDirectoryName(this.tsslOutputDir.ToolTipText)); |
|
} |
|
|
|
// Token: 0x060001CC RID: 460 RVA: 0x00006AF0 File Offset: 0x00004CF0 |
|
private void linkLabelStyle_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) |
|
{ |
|
if (!File.Exists(this.txtFilePath.Text)) |
|
{ |
|
MessageBox.Show(this, "请先选择shape文件!"); |
|
} |
|
else |
|
{ |
|
frmLabelInfoSetting frmLabelInfoSetting = new frmLabelInfoSetting(this.pSpatialDataSource.Fields); |
|
frmLabelInfoSetting.SetLabelInfo(this.linkLabelStyle.Tag as LabelingInfo); |
|
if (frmLabelInfoSetting.ShowDialog(this) == DialogResult.OK) |
|
{ |
|
this.linkLabelStyle.Tag = frmLabelInfoSetting.GetLabelInfo(); |
|
} |
|
} |
|
} |
|
|
|
// Token: 0x060001CD RID: 461 RVA: 0x00006B70 File Offset: 0x00004D70 |
|
private bool CheckBLC() |
|
{ |
|
int num = 0; |
|
int num2 = 0; |
|
try |
|
{ |
|
num = Convert.ToInt32(this.cboxMaxScale.Text); |
|
if (num < 0) |
|
{ |
|
throw new Exception("请输入正整数"); |
|
} |
|
} |
|
catch |
|
{ |
|
throw new Exception("请输入整数"); |
|
} |
|
try |
|
{ |
|
num2 = Convert.ToInt32(this.cboxMinScale.Text); |
|
if (num2 < 0) |
|
{ |
|
throw new Exception("请输入正整数"); |
|
} |
|
} |
|
catch |
|
{ |
|
throw new Exception("请输入整数"); |
|
} |
|
if (num > num2) |
|
{ |
|
throw new Exception("最大可见比例尺应该大于最小可见比例尺"); |
|
} |
|
return true; |
|
} |
|
|
|
// Token: 0x060001CE RID: 462 RVA: 0x00006C30 File Offset: 0x00004E30 |
|
private void cboxMaxScale_TextChanged(object sender, EventArgs e) |
|
{ |
|
try |
|
{ |
|
this.CheckBLC(); |
|
} |
|
catch (Exception ex) |
|
{ |
|
MessageBox.Show(ex.Message); |
|
} |
|
} |
|
|
|
// Token: 0x060001CF RID: 463 RVA: 0x00006C6C File Offset: 0x00004E6C |
|
protected override void Dispose(bool disposing) |
|
{ |
|
if (disposing && this.components != null) |
|
{ |
|
this.components.Dispose(); |
|
} |
|
base.Dispose(disposing); |
|
} |
|
|
|
// Token: 0x060001D0 RID: 464 RVA: 0x00006CA4 File Offset: 0x00004EA4 |
|
private void InitializeComponent() |
|
{ |
|
this.components = new Container(); |
|
this.label1 = new Label(); |
|
this.txtFilePath = new TextBox(); |
|
this.btnOpenFile = new Button(); |
|
this.groupBox1 = new GroupBox(); |
|
this.btnReset = new Button(); |
|
this.btnDeleteFiled = new Button(); |
|
this.btnUnSelectAll = new Button(); |
|
this.btnSelectAll = new Button(); |
|
this.comboBoxMainFileds = new ComboBox(); |
|
this.filedInfoBindingSourceMainField = new BindingSource(this.components); |
|
this.label6 = new Label(); |
|
this.btnMoveButtom = new Button(); |
|
this.btnMoveTop = new Button(); |
|
this.btnMoveDown = new Button(); |
|
this.btnMoveUp = new Button(); |
|
this.dgvFilelds = new DataGridView(); |
|
this.fieldNameDataGridViewTextBoxColumn = new DataGridViewTextBoxColumn(); |
|
this.fieldAliasDataGridViewTextBoxColumn = new DataGridViewTextBoxColumn(); |
|
this.filedInfoBindingSource = new BindingSource(this.components); |
|
this.groupBox2 = new GroupBox(); |
|
this.cboxMinScale = new ComboBox(); |
|
this.cboxMaxScale = new ComboBox(); |
|
this.label5 = new Label(); |
|
this.label4 = new Label(); |
|
this.label3 = new Label(); |
|
this.label2 = new Label(); |
|
this.groupBox3 = new GroupBox(); |
|
this.linkLabelStyle = new LinkLabel(); |
|
this.label16 = new Label(); |
|
this.groupBox6 = new GroupBox(); |
|
this.checkBox3 = new CheckBox(); |
|
this.comboBox2 = new ComboBox(); |
|
this.comboBox3 = new ComboBox(); |
|
this.label12 = new Label(); |
|
this.label13 = new Label(); |
|
this.label14 = new Label(); |
|
this.label15 = new Label(); |
|
this.panel1 = new Panel(); |
|
this.label11 = new Label(); |
|
this.linkLabel2 = new LinkLabel(); |
|
this.linkLabel1 = new LinkLabel(); |
|
this.comboBox1 = new ComboBox(); |
|
this.label10 = new Label(); |
|
this.checkBox2 = new CheckBox(); |
|
this.linkConfigStyle = new LinkLabel(); |
|
this.label7 = new Label(); |
|
this.button8 = new Button(); |
|
this.button9 = new Button(); |
|
this.btnCreateDatabase = new Button(); |
|
this.groupBox4 = new GroupBox(); |
|
this.comboBoxSpatialRef = new ComboBox(); |
|
this.label8 = new Label(); |
|
this.groupBox5 = new GroupBox(); |
|
this.chkBoxEncrypt = new CheckBox(); |
|
this.label9 = new Label(); |
|
this.openFileDialog = new OpenFileDialog(); |
|
this.statusStrip1 = new StatusStrip(); |
|
this.txtRecordsCount = new ToolStripStatusLabel(); |
|
this.toolStripProgressBar1 = new ToolStripProgressBar(); |
|
this.txtTipString = new ToolStripStatusLabel(); |
|
this.toolStripStatusLabel4 = new ToolStripStatusLabel(); |
|
this.tsslOutputFolder = new ToolStripStatusLabel(); |
|
this.tsslOutputDir = new ToolStripStatusLabel(); |
|
this.fontDialog1 = new FontDialog(); |
|
this.saveFileDialog1 = new SaveFileDialog(); |
|
this.groupBox1.SuspendLayout(); |
|
((ISupportInitialize)this.filedInfoBindingSourceMainField).BeginInit(); |
|
((ISupportInitialize)this.dgvFilelds).BeginInit(); |
|
((ISupportInitialize)this.filedInfoBindingSource).BeginInit(); |
|
this.groupBox2.SuspendLayout(); |
|
this.groupBox3.SuspendLayout(); |
|
this.groupBox6.SuspendLayout(); |
|
this.panel1.SuspendLayout(); |
|
this.groupBox4.SuspendLayout(); |
|
this.groupBox5.SuspendLayout(); |
|
this.statusStrip1.SuspendLayout(); |
|
base.SuspendLayout(); |
|
this.label1.AutoSize = true; |
|
this.label1.Location = new Point(14, 18); |
|
this.label1.Name = "label1"; |
|
this.label1.Size = new Size(53, 12); |
|
this.label1.TabIndex = 0; |
|
this.label1.Text = "图层文件"; |
|
this.txtFilePath.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); |
|
this.txtFilePath.Location = new Point(85, 14); |
|
this.txtFilePath.Name = "txtFilePath"; |
|
this.txtFilePath.Size = new Size(456, 21); |
|
this.txtFilePath.TabIndex = 1; |
|
this.btnOpenFile.Anchor = (AnchorStyles.Top | AnchorStyles.Right); |
|
this.btnOpenFile.Location = new Point(548, 13); |
|
this.btnOpenFile.Name = "btnOpenFile"; |
|
this.btnOpenFile.Size = new Size(75, 23); |
|
this.btnOpenFile.TabIndex = 2; |
|
this.btnOpenFile.Text = "浏览"; |
|
this.btnOpenFile.UseVisualStyleBackColor = true; |
|
this.btnOpenFile.Click += this.btnOpenFile_Click; |
|
this.groupBox1.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); |
|
this.groupBox1.Controls.Add(this.btnReset); |
|
this.groupBox1.Controls.Add(this.btnDeleteFiled); |
|
this.groupBox1.Controls.Add(this.btnUnSelectAll); |
|
this.groupBox1.Controls.Add(this.btnSelectAll); |
|
this.groupBox1.Controls.Add(this.comboBoxMainFileds); |
|
this.groupBox1.Controls.Add(this.label6); |
|
this.groupBox1.Controls.Add(this.btnMoveButtom); |
|
this.groupBox1.Controls.Add(this.btnMoveTop); |
|
this.groupBox1.Controls.Add(this.btnMoveDown); |
|
this.groupBox1.Controls.Add(this.btnMoveUp); |
|
this.groupBox1.Controls.Add(this.dgvFilelds); |
|
this.groupBox1.Location = new Point(7, 47); |
|
this.groupBox1.Name = "groupBox1"; |
|
this.groupBox1.Size = new Size(329, 318); |
|
this.groupBox1.TabIndex = 9; |
|
this.groupBox1.TabStop = false; |
|
this.groupBox1.Text = "字段设置"; |
|
this.btnReset.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right); |
|
this.btnReset.Location = new Point(273, 187); |
|
this.btnReset.Name = "btnReset"; |
|
this.btnReset.Size = new Size(42, 23); |
|
this.btnReset.TabIndex = 19; |
|
this.btnReset.Text = "重置"; |
|
this.btnReset.UseVisualStyleBackColor = true; |
|
this.btnReset.Click += this.btnReset_Click; |
|
this.btnDeleteFiled.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right); |
|
this.btnDeleteFiled.Location = new Point(273, 158); |
|
this.btnDeleteFiled.Name = "btnDeleteFiled"; |
|
this.btnDeleteFiled.Size = new Size(42, 23); |
|
this.btnDeleteFiled.TabIndex = 18; |
|
this.btnDeleteFiled.Text = "删除"; |
|
this.btnDeleteFiled.UseVisualStyleBackColor = true; |
|
this.btnDeleteFiled.Click += this.btnDeleteFiled_Click; |
|
this.btnUnSelectAll.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right); |
|
this.btnUnSelectAll.Location = new Point(273, 262); |
|
this.btnUnSelectAll.Name = "btnUnSelectAll"; |
|
this.btnUnSelectAll.Size = new Size(42, 23); |
|
this.btnUnSelectAll.TabIndex = 17; |
|
this.btnUnSelectAll.Text = "反选"; |
|
this.btnUnSelectAll.UseVisualStyleBackColor = true; |
|
this.btnUnSelectAll.Visible = false; |
|
this.btnUnSelectAll.Click += this.btnUnSelectAll_Click; |
|
this.btnSelectAll.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right); |
|
this.btnSelectAll.Location = new Point(273, 233); |
|
this.btnSelectAll.Name = "btnSelectAll"; |
|
this.btnSelectAll.Size = new Size(42, 23); |
|
this.btnSelectAll.TabIndex = 16; |
|
this.btnSelectAll.Text = "全选"; |
|
this.btnSelectAll.UseVisualStyleBackColor = true; |
|
this.btnSelectAll.Visible = false; |
|
this.btnSelectAll.Click += this.btnSelectAll_Click; |
|
this.comboBoxMainFileds.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); |
|
this.comboBoxMainFileds.DataSource = this.filedInfoBindingSourceMainField; |
|
this.comboBoxMainFileds.DisplayMember = "FieldName"; |
|
this.comboBoxMainFileds.DropDownStyle = ComboBoxStyle.DropDownList; |
|
this.comboBoxMainFileds.FormattingEnabled = true; |
|
this.comboBoxMainFileds.Location = new Point(78, 292); |
|
this.comboBoxMainFileds.Name = "comboBoxMainFileds"; |
|
this.comboBoxMainFileds.Size = new Size(189, 20); |
|
this.comboBoxMainFileds.TabIndex = 15; |
|
this.comboBoxMainFileds.ValueMember = "FieldName"; |
|
this.filedInfoBindingSourceMainField.DataSource = typeof(ShapeFieldInfo); |
|
this.label6.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); |
|
this.label6.AutoSize = true; |
|
this.label6.Location = new Point(10, 295); |
|
this.label6.Name = "label6"; |
|
this.label6.Size = new Size(65, 12); |
|
this.label6.TabIndex = 14; |
|
this.label6.Text = "查询字段:"; |
|
this.btnMoveButtom.Anchor = (AnchorStyles.Top | AnchorStyles.Right); |
|
this.btnMoveButtom.Location = new Point(273, 114); |
|
this.btnMoveButtom.Name = "btnMoveButtom"; |
|
this.btnMoveButtom.Size = new Size(42, 23); |
|
this.btnMoveButtom.TabIndex = 13; |
|
this.btnMoveButtom.Text = "置底"; |
|
this.btnMoveButtom.UseVisualStyleBackColor = true; |
|
this.btnMoveButtom.Click += this.btnMove_Click; |
|
this.btnMoveTop.Anchor = (AnchorStyles.Top | AnchorStyles.Right); |
|
this.btnMoveTop.Location = new Point(273, 85); |
|
this.btnMoveTop.Name = "btnMoveTop"; |
|
this.btnMoveTop.Size = new Size(42, 23); |
|
this.btnMoveTop.TabIndex = 12; |
|
this.btnMoveTop.Text = "置顶"; |
|
this.btnMoveTop.UseVisualStyleBackColor = true; |
|
this.btnMoveTop.Click += this.btnMove_Click; |
|
this.btnMoveDown.Anchor = (AnchorStyles.Top | AnchorStyles.Right); |
|
this.btnMoveDown.Location = new Point(273, 56); |
|
this.btnMoveDown.Name = "btnMoveDown"; |
|
this.btnMoveDown.Size = new Size(42, 23); |
|
this.btnMoveDown.TabIndex = 11; |
|
this.btnMoveDown.Text = "下移"; |
|
this.btnMoveDown.UseVisualStyleBackColor = true; |
|
this.btnMoveDown.Click += this.btnMove_Click; |
|
this.btnMoveUp.Anchor = (AnchorStyles.Top | AnchorStyles.Right); |
|
this.btnMoveUp.Location = new Point(273, 27); |
|
this.btnMoveUp.Name = "btnMoveUp"; |
|
this.btnMoveUp.Size = new Size(42, 23); |
|
this.btnMoveUp.TabIndex = 10; |
|
this.btnMoveUp.Text = "上移"; |
|
this.btnMoveUp.UseVisualStyleBackColor = true; |
|
this.btnMoveUp.Click += this.btnMove_Click; |
|
this.dgvFilelds.AllowUserToAddRows = false; |
|
this.dgvFilelds.AllowUserToDeleteRows = false; |
|
this.dgvFilelds.AllowUserToResizeRows = false; |
|
this.dgvFilelds.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); |
|
this.dgvFilelds.AutoGenerateColumns = false; |
|
this.dgvFilelds.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; |
|
this.dgvFilelds.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; |
|
this.dgvFilelds.Columns.AddRange(new DataGridViewColumn[] |
|
{ |
|
this.fieldNameDataGridViewTextBoxColumn, |
|
this.fieldAliasDataGridViewTextBoxColumn |
|
}); |
|
this.dgvFilelds.DataSource = this.filedInfoBindingSource; |
|
this.dgvFilelds.EditMode = DataGridViewEditMode.EditOnEnter; |
|
this.dgvFilelds.Location = new Point(12, 27); |
|
this.dgvFilelds.MultiSelect = false; |
|
this.dgvFilelds.Name = "dgvFilelds"; |
|
this.dgvFilelds.RowHeadersVisible = false; |
|
this.dgvFilelds.RowTemplate.Height = 23; |
|
this.dgvFilelds.SelectionMode = DataGridViewSelectionMode.FullRowSelect; |
|
this.dgvFilelds.Size = new Size(255, 259); |
|
this.dgvFilelds.TabIndex = 9; |
|
this.fieldNameDataGridViewTextBoxColumn.DataPropertyName = "FieldName"; |
|
this.fieldNameDataGridViewTextBoxColumn.FillWeight = 127.1574f; |
|
this.fieldNameDataGridViewTextBoxColumn.HeaderText = "名称"; |
|
this.fieldNameDataGridViewTextBoxColumn.Name = "fieldNameDataGridViewTextBoxColumn"; |
|
this.fieldNameDataGridViewTextBoxColumn.ReadOnly = true; |
|
this.fieldAliasDataGridViewTextBoxColumn.DataPropertyName = "FieldAlias"; |
|
this.fieldAliasDataGridViewTextBoxColumn.FillWeight = 127.1574f; |
|
this.fieldAliasDataGridViewTextBoxColumn.HeaderText = "别名"; |
|
this.fieldAliasDataGridViewTextBoxColumn.Name = "fieldAliasDataGridViewTextBoxColumn"; |
|
this.filedInfoBindingSource.DataSource = typeof(ShapeFieldInfo); |
|
this.groupBox2.Anchor = (AnchorStyles.Top | AnchorStyles.Right); |
|
this.groupBox2.Controls.Add(this.cboxMinScale); |
|
this.groupBox2.Controls.Add(this.cboxMaxScale); |
|
this.groupBox2.Controls.Add(this.label5); |
|
this.groupBox2.Controls.Add(this.label4); |
|
this.groupBox2.Controls.Add(this.label3); |
|
this.groupBox2.Controls.Add(this.label2); |
|
this.groupBox2.Location = new Point(342, 47); |
|
this.groupBox2.Name = "groupBox2"; |
|
this.groupBox2.Size = new Size(281, 88); |
|
this.groupBox2.TabIndex = 10; |
|
this.groupBox2.TabStop = false; |
|
this.groupBox2.Text = "数据显示比例尺"; |
|
this.cboxMinScale.FormattingEnabled = true; |
|
this.cboxMinScale.Items.AddRange(new object[] |
|
{ |
|
"0", |
|
"500", |
|
"1000", |
|
"2000", |
|
"5000", |
|
"10000", |
|
"25000", |
|
"50000", |
|
"100000" |
|
}); |
|
this.cboxMinScale.Location = new Point(148, 55); |
|
this.cboxMinScale.Name = "cboxMinScale"; |
|
this.cboxMinScale.Size = new Size(121, 20); |
|
this.cboxMinScale.TabIndex = 6; |
|
this.cboxMinScale.Text = "0"; |
|
this.cboxMinScale.TextChanged += this.cboxMaxScale_TextChanged; |
|
this.cboxMaxScale.FormattingEnabled = true; |
|
this.cboxMaxScale.Items.AddRange(new object[] |
|
{ |
|
"0", |
|
"500", |
|
"1000", |
|
"2000", |
|
"5000", |
|
"10000", |
|
"25000", |
|
"50000", |
|
"100000" |
|
}); |
|
this.cboxMaxScale.Location = new Point(148, 25); |
|
this.cboxMaxScale.Name = "cboxMaxScale"; |
|
this.cboxMaxScale.Size = new Size(121, 20); |
|
this.cboxMaxScale.TabIndex = 5; |
|
this.cboxMaxScale.Text = "0"; |
|
this.cboxMaxScale.TextChanged += this.cboxMaxScale_TextChanged; |
|
this.label5.AutoSize = true; |
|
this.label5.Location = new Point(118, 58); |
|
this.label5.Name = "label5"; |
|
this.label5.Size = new Size(23, 12); |
|
this.label5.TabIndex = 4; |
|
this.label5.Text = "1:"; |
|
this.label4.AutoSize = true; |
|
this.label4.Location = new Point(118, 27); |
|
this.label4.Name = "label4"; |
|
this.label4.Size = new Size(23, 12); |
|
this.label4.TabIndex = 3; |
|
this.label4.Text = "1:"; |
|
this.label3.AutoSize = true; |
|
this.label3.Location = new Point(13, 58); |
|
this.label3.Name = "label3"; |
|
this.label3.Size = new Size(101, 12); |
|
this.label3.TabIndex = 2; |
|
this.label3.Text = "最小可见比例尺:"; |
|
this.label2.AutoSize = true; |
|
this.label2.Location = new Point(13, 27); |
|
this.label2.Name = "label2"; |
|
this.label2.Size = new Size(101, 12); |
|
this.label2.TabIndex = 1; |
|
this.label2.Text = "最大可见比例尺:"; |
|
this.groupBox3.Anchor = (AnchorStyles.Top | AnchorStyles.Right); |
|
this.groupBox3.Controls.Add(this.linkLabelStyle); |
|
this.groupBox3.Controls.Add(this.label16); |
|
this.groupBox3.Controls.Add(this.groupBox6); |
|
this.groupBox3.Controls.Add(this.panel1); |
|
this.groupBox3.Controls.Add(this.linkLabel2); |
|
this.groupBox3.Controls.Add(this.linkLabel1); |
|
this.groupBox3.Controls.Add(this.comboBox1); |
|
this.groupBox3.Controls.Add(this.label10); |
|
this.groupBox3.Controls.Add(this.checkBox2); |
|
this.groupBox3.Controls.Add(this.linkConfigStyle); |
|
this.groupBox3.Controls.Add(this.label7); |
|
this.groupBox3.Location = new Point(342, 141); |
|
this.groupBox3.Name = "groupBox3"; |
|
this.groupBox3.Size = new Size(281, 48); |
|
this.groupBox3.TabIndex = 11; |
|
this.groupBox3.TabStop = false; |
|
this.groupBox3.Text = "样式设置"; |
|
this.linkLabelStyle.AutoSize = true; |
|
this.linkLabelStyle.Location = new Point(209, 26); |
|
this.linkLabelStyle.Name = "linkLabelStyle"; |
|
this.linkLabelStyle.Size = new Size(29, 12); |
|
this.linkLabelStyle.TabIndex = 26; |
|
this.linkLabelStyle.TabStop = true; |
|
this.linkLabelStyle.Text = "设置"; |
|
this.linkLabelStyle.LinkClicked += this.linkLabelStyle_LinkClicked; |
|
this.label16.AutoSize = true; |
|
this.label16.Location = new Point(146, 26); |
|
this.label16.Name = "label16"; |
|
this.label16.Size = new Size(65, 12); |
|
this.label16.TabIndex = 25; |
|
this.label16.Text = "标注样式:"; |
|
this.groupBox6.Controls.Add(this.checkBox3); |
|
this.groupBox6.Controls.Add(this.comboBox2); |
|
this.groupBox6.Controls.Add(this.comboBox3); |
|
this.groupBox6.Controls.Add(this.label12); |
|
this.groupBox6.Controls.Add(this.label13); |
|
this.groupBox6.Controls.Add(this.label14); |
|
this.groupBox6.Controls.Add(this.label15); |
|
this.groupBox6.Location = new Point(10, 152); |
|
this.groupBox6.Name = "groupBox6"; |
|
this.groupBox6.Size = new Size(254, 109); |
|
this.groupBox6.TabIndex = 24; |
|
this.groupBox6.TabStop = false; |
|
this.groupBox6.Text = "文字显示比例尺"; |
|
this.checkBox3.AutoSize = true; |
|
this.checkBox3.Location = new Point(15, 24); |
|
this.checkBox3.Name = "checkBox3"; |
|
this.checkBox3.Size = new Size(144, 16); |
|
this.checkBox3.TabIndex = 9; |
|
this.checkBox3.Text = "和数据显示比例尺相同"; |
|
this.checkBox3.UseVisualStyleBackColor = true; |
|
this.comboBox2.FormattingEnabled = true; |
|
this.comboBox2.Items.AddRange(new object[] |
|
{ |
|
"0", |
|
"500", |
|
"1000", |
|
"2000", |
|
"5000", |
|
"10000", |
|
"25000", |
|
"50000", |
|
"100000" |
|
}); |
|
this.comboBox2.Location = new Point(148, 82); |
|
this.comboBox2.Name = "comboBox2"; |
|
this.comboBox2.Size = new Size(100, 20); |
|
this.comboBox2.TabIndex = 6; |
|
this.comboBox2.Text = "0"; |
|
this.comboBox3.FormattingEnabled = true; |
|
this.comboBox3.Items.AddRange(new object[] |
|
{ |
|
"0", |
|
"500", |
|
"1000", |
|
"2000", |
|
"5000", |
|
"10000", |
|
"25000", |
|
"50000", |
|
"100000" |
|
}); |
|
this.comboBox3.Location = new Point(148, 52); |
|
this.comboBox3.Name = "comboBox3"; |
|
this.comboBox3.Size = new Size(100, 20); |
|
this.comboBox3.TabIndex = 5; |
|
this.comboBox3.Text = "0"; |
|
this.label12.AutoSize = true; |
|
this.label12.Location = new Point(118, 85); |
|
this.label12.Name = "label12"; |
|
this.label12.Size = new Size(23, 12); |
|
this.label12.TabIndex = 4; |
|
this.label12.Text = "1:"; |
|
this.label13.AutoSize = true; |
|
this.label13.Location = new Point(118, 54); |
|
this.label13.Name = "label13"; |
|
this.label13.Size = new Size(23, 12); |
|
this.label13.TabIndex = 3; |
|
this.label13.Text = "1:"; |
|
this.label14.AutoSize = true; |
|
this.label14.Location = new Point(13, 85); |
|
this.label14.Name = "label14"; |
|
this.label14.Size = new Size(101, 12); |
|
this.label14.TabIndex = 2; |
|
this.label14.Text = "最小可见比例尺:"; |
|
this.label15.AutoSize = true; |
|
this.label15.Location = new Point(13, 54); |
|
this.label15.Name = "label15"; |
|
this.label15.Size = new Size(101, 12); |
|
this.label15.TabIndex = 1; |
|
this.label15.Text = "最大可见比例尺:"; |
|
this.panel1.BorderStyle = BorderStyle.Fixed3D; |
|
this.panel1.Controls.Add(this.label11); |
|
this.panel1.Location = new Point(15, 83); |
|
this.panel1.Name = "panel1"; |
|
this.panel1.Size = new Size(219, 63); |
|
this.panel1.TabIndex = 23; |
|
this.label11.BorderStyle = BorderStyle.FixedSingle; |
|
this.label11.Dock = DockStyle.Fill; |
|
this.label11.Font = new Font("宋体", 21.75f, FontStyle.Regular, GraphicsUnit.Point, 134); |
|
this.label11.Location = new Point(0, 0); |
|
this.label11.Name = "label11"; |
|
this.label11.Size = new Size(215, 59); |
|
this.label11.TabIndex = 19; |
|
this.label11.Text = "杭州今奥"; |
|
this.label11.TextAlign = ContentAlignment.MiddleCenter; |
|
this.linkLabel2.AutoSize = true; |
|
this.linkLabel2.Location = new Point(240, 107); |
|
this.linkLabel2.Name = "linkLabel2"; |
|
this.linkLabel2.Size = new Size(29, 12); |
|
this.linkLabel2.TabIndex = 22; |
|
this.linkLabel2.TabStop = true; |
|
this.linkLabel2.Text = "颜色"; |
|
this.linkLabel1.AutoSize = true; |
|
this.linkLabel1.Location = new Point(240, 85); |
|
this.linkLabel1.Name = "linkLabel1"; |
|
this.linkLabel1.Size = new Size(29, 12); |
|
this.linkLabel1.TabIndex = 20; |
|
this.linkLabel1.TabStop = true; |
|
this.linkLabel1.Text = "字体"; |
|
this.comboBox1.DataSource = this.filedInfoBindingSourceMainField; |
|
this.comboBox1.DisplayMember = "FieldName"; |
|
this.comboBox1.DropDownStyle = ComboBoxStyle.DropDownList; |
|
this.comboBox1.FormattingEnabled = true; |
|
this.comboBox1.Location = new Point(179, 49); |
|
this.comboBox1.Name = "comboBox1"; |
|
this.comboBox1.Size = new Size(90, 20); |
|
this.comboBox1.TabIndex = 17; |
|
this.comboBox1.ValueMember = "FieldName"; |
|
this.label10.AutoSize = true; |
|
this.label10.Location = new Point(118, 54); |
|
this.label10.Name = "label10"; |
|
this.label10.Size = new Size(65, 12); |
|
this.label10.TabIndex = 16; |
|
this.label10.Text = "标注字段:"; |
|
this.checkBox2.AutoSize = true; |
|
this.checkBox2.Location = new Point(15, 53); |
|
this.checkBox2.Name = "checkBox2"; |
|
this.checkBox2.Size = new Size(96, 16); |
|
this.checkBox2.TabIndex = 8; |
|
this.checkBox2.Text = "是否文字标注"; |
|
this.checkBox2.UseVisualStyleBackColor = true; |
|
this.linkConfigStyle.AutoSize = true; |
|
this.linkConfigStyle.Location = new Point(76, 26); |
|
this.linkConfigStyle.Name = "linkConfigStyle"; |
|
this.linkConfigStyle.Size = new Size(29, 12); |
|
this.linkConfigStyle.TabIndex = 6; |
|
this.linkConfigStyle.TabStop = true; |
|
this.linkConfigStyle.Text = "设置"; |
|
this.linkConfigStyle.LinkClicked += this.linkConfigStyle_LinkClicked; |
|
this.label7.AutoSize = true; |
|
this.label7.Location = new Point(13, 26); |
|
this.label7.Name = "label7"; |
|
this.label7.Size = new Size(65, 12); |
|
this.label7.TabIndex = 3; |
|
this.label7.Text = "填充样式:"; |
|
this.button8.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right); |
|
this.button8.Location = new Point(342, 345); |
|
this.button8.Name = "button8"; |
|
this.button8.Size = new Size(66, 23); |
|
this.button8.TabIndex = 12; |
|
this.button8.Text = "保存配置"; |
|
this.button8.UseVisualStyleBackColor = true; |
|
this.button8.Visible = false; |
|
this.button8.Click += this.button8_Click; |
|
this.button9.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right); |
|
this.button9.Location = new Point(414, 345); |
|
this.button9.Name = "button9"; |
|
this.button9.Size = new Size(66, 23); |
|
this.button9.TabIndex = 13; |
|
this.button9.Text = "加载配置"; |
|
this.button9.UseVisualStyleBackColor = true; |
|
this.button9.Visible = false; |
|
this.button9.Click += this.button9_Click; |
|
this.btnCreateDatabase.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right); |
|
this.btnCreateDatabase.Location = new Point(557, 346); |
|
this.btnCreateDatabase.Name = "btnCreateDatabase"; |
|
this.btnCreateDatabase.Size = new Size(66, 23); |
|
this.btnCreateDatabase.TabIndex = 14; |
|
this.btnCreateDatabase.Text = "开始生成"; |
|
this.btnCreateDatabase.UseVisualStyleBackColor = true; |
|
this.btnCreateDatabase.Click += this.btnCreateDatabase_Click; |
|
this.groupBox4.Anchor = (AnchorStyles.Top | AnchorStyles.Right); |
|
this.groupBox4.Controls.Add(this.comboBoxSpatialRef); |
|
this.groupBox4.Controls.Add(this.label8); |
|
this.groupBox4.Location = new Point(342, 195); |
|
this.groupBox4.Name = "groupBox4"; |
|
this.groupBox4.Size = new Size(281, 59); |
|
this.groupBox4.TabIndex = 15; |
|
this.groupBox4.TabStop = false; |
|
this.groupBox4.Text = "设置坐标系"; |
|
this.comboBoxSpatialRef.DropDownStyle = ComboBoxStyle.DropDownList; |
|
this.comboBoxSpatialRef.FormattingEnabled = true; |
|
this.comboBoxSpatialRef.Items.AddRange(new object[] |
|
{ |
|
"0", |
|
"500", |
|
"1000", |
|
"2000", |
|
"5000", |
|
"10000", |
|
"25000", |
|
"50000", |
|
"10000" |
|
}); |
|
this.comboBoxSpatialRef.Location = new Point(15, 27); |
|
this.comboBoxSpatialRef.Name = "comboBoxSpatialRef"; |
|
this.comboBoxSpatialRef.Size = new Size(254, 20); |
|
this.comboBoxSpatialRef.TabIndex = 7; |
|
this.label8.AutoSize = true; |
|
this.label8.Location = new Point(13, 31); |
|
this.label8.Name = "label8"; |
|
this.label8.Size = new Size(77, 12); |
|
this.label8.TabIndex = 4; |
|
this.label8.Text = "当前坐标系:"; |
|
this.groupBox5.Anchor = (AnchorStyles.Top | AnchorStyles.Right); |
|
this.groupBox5.Controls.Add(this.chkBoxEncrypt); |
|
this.groupBox5.Controls.Add(this.label9); |
|
this.groupBox5.Location = new Point(342, 270); |
|
this.groupBox5.Name = "groupBox5"; |
|
this.groupBox5.Size = new Size(281, 59); |
|
this.groupBox5.TabIndex = 16; |
|
this.groupBox5.TabStop = false; |
|
this.groupBox5.Text = "加密设置"; |
|
this.chkBoxEncrypt.AutoSize = true; |
|
this.chkBoxEncrypt.Location = new Point(96, 30); |
|
this.chkBoxEncrypt.Name = "chkBoxEncrypt"; |
|
this.chkBoxEncrypt.Size = new Size(72, 16); |
|
this.chkBoxEncrypt.TabIndex = 5; |
|
this.chkBoxEncrypt.Text = "数据加密"; |
|
this.chkBoxEncrypt.UseVisualStyleBackColor = true; |
|
this.label9.AutoSize = true; |
|
this.label9.Location = new Point(13, 31); |
|
this.label9.Name = "label9"; |
|
this.label9.Size = new Size(65, 12); |
|
this.label9.TabIndex = 4; |
|
this.label9.Text = "加密状态:"; |
|
this.openFileDialog.Filter = "Shp文件|*.shp"; |
|
this.statusStrip1.BackColor = Color.Transparent; |
|
this.statusStrip1.Items.AddRange(new ToolStripItem[] |
|
{ |
|
this.txtRecordsCount, |
|
this.toolStripProgressBar1, |
|
this.txtTipString, |
|
this.toolStripStatusLabel4, |
|
this.tsslOutputFolder, |
|
this.tsslOutputDir |
|
}); |
|
this.statusStrip1.Location = new Point(0, 372); |
|
this.statusStrip1.Name = "statusStrip1"; |
|
this.statusStrip1.ShowItemToolTips = true; |
|
this.statusStrip1.Size = new Size(640, 22); |
|
this.statusStrip1.SizingGrip = false; |
|
this.statusStrip1.TabIndex = 17; |
|
this.statusStrip1.Text = "statusStrip1"; |
|
this.txtRecordsCount.Name = "txtRecordsCount"; |
|
this.txtRecordsCount.Size = new Size(63, 17); |
|
this.txtRecordsCount.Text = "共0条记录"; |
|
this.toolStripProgressBar1.Alignment = ToolStripItemAlignment.Right; |
|
this.toolStripProgressBar1.Name = "toolStripProgressBar1"; |
|
this.toolStripProgressBar1.Size = new Size(100, 16); |
|
this.toolStripProgressBar1.Style = ProgressBarStyle.Marquee; |
|
this.toolStripProgressBar1.Visible = false; |
|
this.txtTipString.Name = "txtTipString"; |
|
this.txtTipString.Size = new Size(100, 17); |
|
this.txtTipString.Text = "转换中请稍候……"; |
|
this.txtTipString.Visible = false; |
|
this.toolStripStatusLabel4.Name = "toolStripStatusLabel4"; |
|
this.toolStripStatusLabel4.Size = new Size(242, 17); |
|
this.toolStripStatusLabel4.Spring = true; |
|
this.tsslOutputFolder.IsLink = true; |
|
this.tsslOutputFolder.LinkBehavior = LinkBehavior.HoverUnderline; |
|
this.tsslOutputFolder.Name = "tsslOutputFolder"; |
|
this.tsslOutputFolder.Size = new Size(68, 17); |
|
this.tsslOutputFolder.Text = "输出位置:"; |
|
this.tsslOutputFolder.ToolTipText = "点击打开目录"; |
|
this.tsslOutputFolder.Click += this.tsslOutputFolder_Click; |
|
this.tsslOutputDir.IsLink = true; |
|
this.tsslOutputDir.Name = "tsslOutputDir"; |
|
this.tsslOutputDir.Size = new Size(19, 17); |
|
this.tsslOutputDir.Text = "C:"; |
|
this.tsslOutputDir.Click += this.tsslOutputDir_Click; |
|
this.saveFileDialog1.Filter = "ko文件|*.ko"; |
|
base.AutoScaleDimensions = new SizeF(6f, 12f); |
|
base.AutoScaleMode = AutoScaleMode.Font; |
|
base.Controls.Add(this.statusStrip1); |
|
base.Controls.Add(this.groupBox5); |
|
base.Controls.Add(this.groupBox4); |
|
base.Controls.Add(this.btnCreateDatabase); |
|
base.Controls.Add(this.button9); |
|
base.Controls.Add(this.button8); |
|
base.Controls.Add(this.groupBox2); |
|
base.Controls.Add(this.groupBox1); |
|
base.Controls.Add(this.btnOpenFile); |
|
base.Controls.Add(this.txtFilePath); |
|
base.Controls.Add(this.label1); |
|
base.Controls.Add(this.groupBox3); |
|
base.Name = "frmDataSetting"; |
|
base.Size = new Size(640, 394); |
|
base.Tag = ""; |
|
base.Load += this.frmDataSetting_Load; |
|
this.groupBox1.ResumeLayout(false); |
|
this.groupBox1.PerformLayout(); |
|
((ISupportInitialize)this.filedInfoBindingSourceMainField).EndInit(); |
|
((ISupportInitialize)this.dgvFilelds).EndInit(); |
|
((ISupportInitialize)this.filedInfoBindingSource).EndInit(); |
|
this.groupBox2.ResumeLayout(false); |
|
this.groupBox2.PerformLayout(); |
|
this.groupBox3.ResumeLayout(false); |
|
this.groupBox3.PerformLayout(); |
|
this.groupBox6.ResumeLayout(false); |
|
this.groupBox6.PerformLayout(); |
|
this.panel1.ResumeLayout(false); |
|
this.groupBox4.ResumeLayout(false); |
|
this.groupBox4.PerformLayout(); |
|
this.groupBox5.ResumeLayout(false); |
|
this.groupBox5.PerformLayout(); |
|
this.statusStrip1.ResumeLayout(false); |
|
this.statusStrip1.PerformLayout(); |
|
base.ResumeLayout(false); |
|
base.PerformLayout(); |
|
} |
|
|
|
// Token: 0x040000EB RID: 235 |
|
private ISpatialDataSource pSpatialDataSource; |
|
|
|
// Token: 0x040000EC RID: 236 |
|
private Renderer Render = Renderer.GetDefault(); |
|
|
|
// Token: 0x040000ED RID: 237 |
|
private Thread doWorkThread = null; |
|
|
|
// Token: 0x040000EE RID: 238 |
|
private KODBFeatureLayer pLayer = null; |
|
|
|
// Token: 0x040000EF RID: 239 |
|
private IContainer components = null; |
|
|
|
// Token: 0x040000F0 RID: 240 |
|
private Label label1; |
|
|
|
// Token: 0x040000F1 RID: 241 |
|
private TextBox txtFilePath; |
|
|
|
// Token: 0x040000F2 RID: 242 |
|
private Button btnOpenFile; |
|
|
|
// Token: 0x040000F3 RID: 243 |
|
private GroupBox groupBox1; |
|
|
|
// Token: 0x040000F4 RID: 244 |
|
private ComboBox comboBoxMainFileds; |
|
|
|
// Token: 0x040000F5 RID: 245 |
|
private Label label6; |
|
|
|
// Token: 0x040000F6 RID: 246 |
|
private Button btnMoveButtom; |
|
|
|
// Token: 0x040000F7 RID: 247 |
|
private Button btnMoveTop; |
|
|
|
// Token: 0x040000F8 RID: 248 |
|
private Button btnMoveDown; |
|
|
|
// Token: 0x040000F9 RID: 249 |
|
private Button btnMoveUp; |
|
|
|
// Token: 0x040000FA RID: 250 |
|
private DataGridView dgvFilelds; |
|
|
|
// Token: 0x040000FB RID: 251 |
|
private GroupBox groupBox2; |
|
|
|
// Token: 0x040000FC RID: 252 |
|
private ComboBox cboxMinScale; |
|
|
|
// Token: 0x040000FD RID: 253 |
|
private ComboBox cboxMaxScale; |
|
|
|
// Token: 0x040000FE RID: 254 |
|
private Label label5; |
|
|
|
// Token: 0x040000FF RID: 255 |
|
private Label label4; |
|
|
|
// Token: 0x04000100 RID: 256 |
|
private Label label3; |
|
|
|
// Token: 0x04000101 RID: 257 |
|
private Label label2; |
|
|
|
// Token: 0x04000102 RID: 258 |
|
private GroupBox groupBox3; |
|
|
|
// Token: 0x04000103 RID: 259 |
|
private LinkLabel linkConfigStyle; |
|
|
|
// Token: 0x04000104 RID: 260 |
|
private Label label7; |
|
|
|
// Token: 0x04000105 RID: 261 |
|
private Button button8; |
|
|
|
// Token: 0x04000106 RID: 262 |
|
private Button button9; |
|
|
|
// Token: 0x04000107 RID: 263 |
|
private Button btnCreateDatabase; |
|
|
|
// Token: 0x04000108 RID: 264 |
|
private GroupBox groupBox4; |
|
|
|
// Token: 0x04000109 RID: 265 |
|
private ComboBox comboBoxSpatialRef; |
|
|
|
// Token: 0x0400010A RID: 266 |
|
private Label label8; |
|
|
|
// Token: 0x0400010B RID: 267 |
|
private GroupBox groupBox5; |
|
|
|
// Token: 0x0400010C RID: 268 |
|
private CheckBox chkBoxEncrypt; |
|
|
|
// Token: 0x0400010D RID: 269 |
|
private Label label9; |
|
|
|
// Token: 0x0400010E RID: 270 |
|
private OpenFileDialog openFileDialog; |
|
|
|
// Token: 0x0400010F RID: 271 |
|
private StatusStrip statusStrip1; |
|
|
|
// Token: 0x04000110 RID: 272 |
|
private ToolStripStatusLabel txtRecordsCount; |
|
|
|
// Token: 0x04000111 RID: 273 |
|
private ToolStripProgressBar toolStripProgressBar1; |
|
|
|
// Token: 0x04000112 RID: 274 |
|
private BindingSource filedInfoBindingSource; |
|
|
|
// Token: 0x04000113 RID: 275 |
|
private Button btnReset; |
|
|
|
// Token: 0x04000114 RID: 276 |
|
private Button btnDeleteFiled; |
|
|
|
// Token: 0x04000115 RID: 277 |
|
private DataGridViewTextBoxColumn fieldNameDataGridViewTextBoxColumn; |
|
|
|
// Token: 0x04000116 RID: 278 |
|
private DataGridViewTextBoxColumn fieldAliasDataGridViewTextBoxColumn; |
|
|
|
// Token: 0x04000117 RID: 279 |
|
private Button btnUnSelectAll; |
|
|
|
// Token: 0x04000118 RID: 280 |
|
private Button btnSelectAll; |
|
|
|
// Token: 0x04000119 RID: 281 |
|
private BindingSource filedInfoBindingSourceMainField; |
|
|
|
// Token: 0x0400011A RID: 282 |
|
private Panel panel1; |
|
|
|
// Token: 0x0400011B RID: 283 |
|
private Label label11; |
|
|
|
// Token: 0x0400011C RID: 284 |
|
private LinkLabel linkLabel2; |
|
|
|
// Token: 0x0400011D RID: 285 |
|
private LinkLabel linkLabel1; |
|
|
|
// Token: 0x0400011E RID: 286 |
|
private ComboBox comboBox1; |
|
|
|
// Token: 0x0400011F RID: 287 |
|
private Label label10; |
|
|
|
// Token: 0x04000120 RID: 288 |
|
private CheckBox checkBox2; |
|
|
|
// Token: 0x04000121 RID: 289 |
|
private FontDialog fontDialog1; |
|
|
|
// Token: 0x04000122 RID: 290 |
|
private GroupBox groupBox6; |
|
|
|
// Token: 0x04000123 RID: 291 |
|
private CheckBox checkBox3; |
|
|
|
// Token: 0x04000124 RID: 292 |
|
private ComboBox comboBox2; |
|
|
|
// Token: 0x04000125 RID: 293 |
|
private ComboBox comboBox3; |
|
|
|
// Token: 0x04000126 RID: 294 |
|
private Label label12; |
|
|
|
// Token: 0x04000127 RID: 295 |
|
private Label label13; |
|
|
|
// Token: 0x04000128 RID: 296 |
|
private Label label14; |
|
|
|
// Token: 0x04000129 RID: 297 |
|
private Label label15; |
|
|
|
// Token: 0x0400012A RID: 298 |
|
private ToolStripStatusLabel txtTipString; |
|
|
|
// Token: 0x0400012B RID: 299 |
|
private ToolStripStatusLabel tsslOutputFolder; |
|
|
|
// Token: 0x0400012C RID: 300 |
|
private ToolStripStatusLabel tsslOutputDir; |
|
|
|
// Token: 0x0400012D RID: 301 |
|
private SaveFileDialog saveFileDialog1; |
|
|
|
// Token: 0x0400012E RID: 302 |
|
private ToolStripStatusLabel toolStripStatusLabel4; |
|
|
|
// Token: 0x0400012F RID: 303 |
|
private LinkLabel linkLabelStyle; |
|
|
|
// Token: 0x04000130 RID: 304 |
|
private Label label16; |
|
} |
|
}
|
|
|