📄 mainform.cs
字号:
this.buttonToGML.ImageIndex = 9;
this.buttonToGML.Tag = "gml";
this.buttonToGML.ToolTipText = "export to GML 2.0";
//
// buttonToSVG
//
this.buttonToSVG.ImageIndex = 10;
this.buttonToSVG.Tag = "svg";
this.buttonToSVG.ToolTipText = "export to SVG";
//
// buttonAbout
//
this.buttonAbout.ImageIndex = 11;
this.buttonAbout.Tag = "about";
this.buttonAbout.ToolTipText = "About";
//
// imageList1
//
this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
//
// panel3
//
this.panel3.Controls.Add(this.splitter1);
this.panel3.Controls.Add(this.tabControl1);
this.panel3.Controls.Add(this.dgLayers);
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(2, 28);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(488, 220);
this.panel3.TabIndex = 8;
//
// splitter1
//
this.splitter1.Cursor = System.Windows.Forms.Cursors.VSplit;
this.splitter1.Location = new System.Drawing.Point(180, 0);
this.splitter1.Name = "splitter1";
this.splitter1.Size = new System.Drawing.Size(5, 220);
this.splitter1.TabIndex = 8;
this.splitter1.TabStop = false;
//
// tabControl1
//
this.tabControl1.Appearance = System.Windows.Forms.TabAppearance.FlatButtons;
this.tabControl1.Controls.Add(this.tabFields);
this.tabControl1.Controls.Add(this.tabClassification);
this.tabControl1.Controls.Add(this.tabTable);
this.tabControl1.Controls.Add(this.tabInfo);
this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControl1.Location = new System.Drawing.Point(180, 0);
this.tabControl1.Name = "tabControl1";
this.tabControl1.Padding = new System.Drawing.Point(5, 3);
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(308, 220);
this.tabControl1.TabIndex = 7;
//
// tabFields
//
this.tabFields.BackColor = System.Drawing.SystemColors.Control;
this.tabFields.Controls.Add(this.dgFields);
this.tabFields.Location = new System.Drawing.Point(4, 25);
this.tabFields.Name = "tabFields";
this.tabFields.Size = new System.Drawing.Size(300, 191);
this.tabFields.TabIndex = 0;
this.tabFields.Text = "Fields";
//
// dgFields
//
this.dgFields.BackgroundColor = System.Drawing.SystemColors.Control;
this.dgFields.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dgFields.CaptionBackColor = System.Drawing.Color.SeaGreen;
this.dgFields.CaptionForeColor = System.Drawing.Color.White;
this.dgFields.DataMember = "";
this.dgFields.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgFields.HeaderForeColor = System.Drawing.SystemColors.ControlText;
this.dgFields.Location = new System.Drawing.Point(0, 0);
this.dgFields.Name = "dgFields";
this.dgFields.Size = new System.Drawing.Size(300, 191);
this.dgFields.TabIndex = 0;
//
// tabClassification
//
this.tabClassification.Controls.Add(this.dgBins);
this.tabClassification.Controls.Add(this.panel2);
this.tabClassification.Location = new System.Drawing.Point(4, 25);
this.tabClassification.Name = "tabClassification";
this.tabClassification.Size = new System.Drawing.Size(300, 193);
this.tabClassification.TabIndex = 1;
this.tabClassification.Text = "Classification";
this.tabClassification.Visible = false;
//
// dgBins
//
this.dgBins.BackColor = System.Drawing.Color.White;
this.dgBins.BackgroundColor = System.Drawing.Color.White;
this.dgBins.CaptionBackColor = System.Drawing.Color.SeaGreen;
this.dgBins.CaptionForeColor = System.Drawing.Color.White;
this.dgBins.DataMember = "";
this.dgBins.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgBins.HeaderForeColor = System.Drawing.SystemColors.ControlText;
this.dgBins.Location = new System.Drawing.Point(112, 0);
this.dgBins.Name = "dgBins";
this.dgBins.Size = new System.Drawing.Size(188, 193);
this.dgBins.TabIndex = 7;
//
// panel2
//
this.panel2.Controls.Add(this.checkBoxShowNull);
this.panel2.Controls.Add(this.buttonClassApply);
this.panel2.Controls.Add(this.label4);
this.panel2.Controls.Add(this.comboClassCount);
this.panel2.Controls.Add(this.label3);
this.panel2.Controls.Add(this.comboClassField);
this.panel2.Controls.Add(this.label2);
this.panel2.Controls.Add(this.comboClassType);
this.panel2.Dock = System.Windows.Forms.DockStyle.Left;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(112, 193);
this.panel2.TabIndex = 6;
//
// checkBoxShowNull
//
this.checkBoxShowNull.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.checkBoxShowNull.Checked = true;
this.checkBoxShowNull.CheckState = System.Windows.Forms.CheckState.Checked;
this.checkBoxShowNull.Location = new System.Drawing.Point(8, 136);
this.checkBoxShowNull.Name = "checkBoxShowNull";
this.checkBoxShowNull.Size = new System.Drawing.Size(96, 16);
this.checkBoxShowNull.TabIndex = 13;
this.checkBoxShowNull.Text = "show null";
this.checkBoxShowNull.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// buttonClassApply
//
this.buttonClassApply.Location = new System.Drawing.Point(8, 160);
this.buttonClassApply.Name = "buttonClassApply";
this.buttonClassApply.Size = new System.Drawing.Size(96, 24);
this.buttonClassApply.TabIndex = 12;
this.buttonClassApply.Text = "Classify";
//
// label4
//
this.label4.Location = new System.Drawing.Point(8, 104);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(40, 24);
this.label4.TabIndex = 11;
this.label4.Text = "Count";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// comboClassCount
//
this.comboClassCount.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple;
this.comboClassCount.Location = new System.Drawing.Point(56, 104);
this.comboClassCount.Name = "comboClassCount";
this.comboClassCount.Size = new System.Drawing.Size(48, 21);
this.comboClassCount.TabIndex = 10;
//
// label3
//
this.label3.Location = new System.Drawing.Point(8, 56);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(72, 16);
this.label3.TabIndex = 9;
this.label3.Text = "Field";
//
// comboClassField
//
this.comboClassField.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboClassField.Location = new System.Drawing.Point(8, 72);
this.comboClassField.Name = "comboClassField";
this.comboClassField.Size = new System.Drawing.Size(96, 21);
this.comboClassField.TabIndex = 8;
//
// label2
//
this.label2.Location = new System.Drawing.Point(8, 8);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(72, 16);
this.label2.TabIndex = 7;
this.label2.Text = "Type";
//
// comboClassType
//
this.comboClassType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboClassType.Items.AddRange(new object[] {
"Single",
"Unique",
"Equal Interval",
"Quantile",
"Natural Breaks"});
this.comboClassType.Location = new System.Drawing.Point(8, 24);
this.comboClassType.Name = "comboClassType";
this.comboClassType.Size = new System.Drawing.Size(96, 21);
this.comboClassType.TabIndex = 6;
//
// tabTable
//
this.tabTable.Controls.Add(this.labelgenerating);
this.tabTable.Controls.Add(this.dgTable);
this.tabTable.Location = new System.Drawing.Point(4, 25);
this.tabTable.Name = "tabTable";
this.tabTable.Size = new System.Drawing.Size(300, 193);
this.tabTable.TabIndex = 5;
this.tabTable.Text = "Table";
this.tabTable.Visible = false;
//
// labelgenerating
//
this.labelgenerating.Location = new System.Drawing.Point(16, 32);
this.labelgenerating.Name = "labelgenerating";
this.labelgenerating.Size = new System.Drawing.Size(216, 24);
this.labelgenerating.TabIndex = 4;
this.labelgenerating.Text = "generating table, please wait...";
this.labelgenerating.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.labelgenerating.Visible = false;
//
// dgTable
//
this.dgTable.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.dgTable.CaptionBackColor = System.Drawing.Color.SeaGreen;
this.dgTable.CaptionForeColor = System.Drawing.Color.White;
this.dgTable.CaptionVisible = false;
this.dgTable.DataMember = "";
this.dgTable.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgTable.HeaderForeColor = System.Drawing.SystemColors.ControlText;
this.dgTable.Location = new System.Drawing.Point(0, 0);
this.dgTable.Name = "dgTable";
this.dgTable.RowHeadersVisible = false;
this.dgTable.Size = new System.Drawing.Size(300, 193);
this.dgTable.TabIndex = 3;
//
// tabInfo
//
this.tabInfo.Controls.Add(this.dgInfo);
this.tabInfo.Location = new System.Drawing.Point(4, 25);
this.tabInfo.Name = "tabInfo";
this.tabInfo.Size = new System.Drawing.Size(300, 193);
this.tabInfo.TabIndex = 3;
this.tabInfo.Text = "Info";
this.tabInfo.Visible = false;
//
// dgInfo
//
this.dgInfo.AllowSorting = false;
this.dgInfo.AlternatingBackColor = System.Drawing.Color.Honeydew;
this.dgInfo.CaptionBackColor = System.Drawing.Color.SeaGreen;
this.dgInfo.CaptionForeColor = System.Drawing.Color.White;
this.dgInfo.CaptionText = "Info";
this.dgInfo.CaptionVisible = false;
this.dgInfo.DataMember = "";
this.dgInfo.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgInfo.HeaderBackColor = System.Drawing.Color.DarkGreen;
this.dgInfo.HeaderForeColor = System.Drawing.Color.White;
this.dgInfo.Location = new System.Drawing.Point(0, 0);
this.dgInfo.Name = "dgInfo";
this.dgInfo.ReadOnly = true;
this.dgInfo.RowHeadersVisible = false;
this.dgInfo.Size = new System.Drawing.Size(300, 193);
this.dgInfo.TabIndex = 0;
//
// dgLayers
//
this.dgLayers.AllowNavigation = false;
this.dgLayers.AlternatingBackColor = System.Drawing.Color.PaleTurquoise;
this.dgLayers.BackColor = System.Drawing.Color.White;
this.dgLayers.BackgroundColor = System.Drawing.SystemColors.Control;
this.dgLayers.CaptionBackColor = System.Drawing.Color.SeaGreen;
this.dgLayers.CaptionForeColor = System.Drawing.Color.White;
this.dgLayers.CaptionText = "Layers";
this.dgLayers.DataMember = "";
this.dgLayers.Dock = System.Windows.Forms.DockStyle.Left;
this.dgLayers.HeaderForeColor = System.Drawing.SystemColors.ControlText;
this.dgLayers.Location = new System.Drawing.Point(0, 0);
this.dgLayers.Name = "dgLayers";
this.dgLayers.SelectionBackColor = System.Drawing.Color.SeaGreen;
this.dgLayers.Size = new System.Drawing.Size(180, 220);
this.dgLayers.TabIndex = 5;
//
// MainForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(492, 265);
this.Controls.Add(this.panel3);
this.Controls.Add(this.toolBar1);
this.Controls.Add(this.panel1);
this.DockPadding.All = 2;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Menu = this.mainMenu1;
this.Name = "MainForm";
this.Text = "GeoCon";
this.Load += new System.EventHandler(this.MainForm_Load);
this.panel1.ResumeLayout(false);
this.panel3.ResumeLayout(false);
this.tabControl1.ResumeLayout(false);
this.tabFields.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgFields)).EndInit();
this.tabClassification.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgBins)).EndInit();
this.panel2.ResumeLayout(false);
this.tabTable.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgTable)).EndInit();
this.tabInfo.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dgInfo)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dgLayers)).EndInit();
this.ResumeLayout(false);
}
#endregion
#region constructor & main
public MainForm()
{
InitializeComponent();
Application.CurrentCulture = new System.Globalization.CultureInfo("en-US",false);
InitApp();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -