• R/O
  • SSH
  • HTTPS

wheretrainbuild: Commit


Commit MetaInfo

Revision25 (tree)
Zeit2019-04-20 10:50:05
Autordangerouswoo

Log Message

(empty log message)

Ändern Zusammenfassung

Diff

--- WhereTrainBuild/Dialog/StationDialog.Designer.cs (revision 24)
+++ WhereTrainBuild/Dialog/StationDialog.Designer.cs (revision 25)
@@ -38,7 +38,7 @@
3838 this.LatLbl = new System.Windows.Forms.Label();
3939 this.LngLbl = new System.Windows.Forms.Label();
4040 this.CdNum = new System.Windows.Forms.NumericUpDown();
41- this.label4 = new System.Windows.Forms.Label();
41+ this.CdLbl = new System.Windows.Forms.Label();
4242 this.label5 = new System.Windows.Forms.Label();
4343 this.GCdNum = new System.Windows.Forms.NumericUpDown();
4444 ((System.ComponentModel.ISupportInitialize)(this.CdNum)).BeginInit();
@@ -151,14 +151,15 @@
151151 this.CdNum.Size = new System.Drawing.Size(95, 19);
152152 this.CdNum.TabIndex = 14;
153153 //
154- // label4
154+ // CdLbl
155155 //
156- this.label4.AutoSize = true;
157- this.label4.Location = new System.Drawing.Point(12, 46);
158- this.label4.Name = "label4";
159- this.label4.Size = new System.Drawing.Size(44, 12);
160- this.label4.TabIndex = 13;
161- this.label4.Text = "駅コード";
156+ this.CdLbl.AutoSize = true;
157+ this.CdLbl.Location = new System.Drawing.Point(12, 46);
158+ this.CdLbl.Name = "CdLbl";
159+ this.CdLbl.Size = new System.Drawing.Size(44, 12);
160+ this.CdLbl.TabIndex = 13;
161+ this.CdLbl.Text = "駅コード";
162+ this.CdLbl.Click += new System.EventHandler(this.CdLbl_Click);
162163 //
163164 // label5
164165 //
@@ -199,7 +200,7 @@
199200 this.Controls.Add(this.LngLbl);
200201 this.Controls.Add(this.LatLbl);
201202 this.Controls.Add(this.label5);
202- this.Controls.Add(this.label4);
203+ this.Controls.Add(this.CdLbl);
203204 this.Controls.Add(this.label2);
204205 this.Controls.Add(this.button2);
205206 this.Controls.Add(this.OkBtn);
@@ -230,7 +231,7 @@
230231 private System.Windows.Forms.Label LatLbl;
231232 private System.Windows.Forms.Label LngLbl;
232233 private System.Windows.Forms.NumericUpDown CdNum;
233- private System.Windows.Forms.Label label4;
234+ private System.Windows.Forms.Label CdLbl;
234235 private System.Windows.Forms.Label label5;
235236 private System.Windows.Forms.NumericUpDown GCdNum;
236237 }
--- WhereTrainBuild/Dialog/StationDialog.cs (revision 24)
+++ WhereTrainBuild/Dialog/StationDialog.cs (revision 25)
@@ -71,5 +71,15 @@
7171
7272 DialogResult = System.Windows.Forms.DialogResult.OK;
7373 }
74+
75+ /// <summary>
76+ /// 駅コードラベル押下
77+ /// </summary>
78+ /// <param name="sender"></param>
79+ /// <param name="e"></param>
80+ private void CdLbl_Click(object sender, EventArgs e)
81+ {
82+ CdNum.Value = NameTxt.Text.GetHashCode();
83+ }
7484 }
7585 }
Show on old repository browser