• R/O
  • SSH
  • HTTPS

wheretrainbuild: コミット


コミットメタ情報

リビジョン61 (tree)
日時2021-05-19 18:46:26
作者dangerouswoo

ログメッセージ

(メッセージはありません)

変更サマリ

差分

--- WhereTrainBuild/Dialog/StationDialog.Designer.cs (revision 60)
+++ WhereTrainBuild/Dialog/StationDialog.Designer.cs (revision 61)
@@ -41,6 +41,7 @@
4141 this.CdLbl = new System.Windows.Forms.Label();
4242 this.label5 = new System.Windows.Forms.Label();
4343 this.GCdNum = new System.Windows.Forms.NumericUpDown();
44+ this.MaxBtn = new System.Windows.Forms.Button();
4445 ((System.ComponentModel.ISupportInitialize)(this.CdNum)).BeginInit();
4546 ((System.ComponentModel.ISupportInitialize)(this.GCdNum)).BeginInit();
4647 this.SuspendLayout();
@@ -51,7 +52,7 @@
5152 | System.Windows.Forms.AnchorStyles.Right)));
5253 this.NameTxt.Location = new System.Drawing.Point(94, 12);
5354 this.NameTxt.Name = "NameTxt";
54- this.NameTxt.Size = new System.Drawing.Size(95, 19);
55+ this.NameTxt.Size = new System.Drawing.Size(138, 19);
5556 this.NameTxt.TabIndex = 0;
5657 //
5758 // label1
@@ -67,7 +68,7 @@
6768 //
6869 this.VisibleChk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
6970 this.VisibleChk.AutoSize = true;
70- this.VisibleChk.Location = new System.Drawing.Point(130, 100);
71+ this.VisibleChk.Location = new System.Drawing.Point(173, 100);
7172 this.VisibleChk.Name = "VisibleChk";
7273 this.VisibleChk.Size = new System.Drawing.Size(59, 16);
7374 this.VisibleChk.TabIndex = 2;
@@ -78,7 +79,7 @@
7879 //
7980 this.button2.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
8081 this.button2.DialogResult = System.Windows.Forms.DialogResult.Cancel;
81- this.button2.Location = new System.Drawing.Point(111, 154);
82+ this.button2.Location = new System.Drawing.Point(133, 154);
8283 this.button2.Name = "button2";
8384 this.button2.Size = new System.Drawing.Size(75, 23);
8485 this.button2.TabIndex = 12;
@@ -88,7 +89,7 @@
8889 // OkBtn
8990 //
9091 this.OkBtn.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
91- this.OkBtn.Location = new System.Drawing.Point(12, 154);
92+ this.OkBtn.Location = new System.Drawing.Point(34, 154);
9293 this.OkBtn.Name = "OkBtn";
9394 this.OkBtn.Size = new System.Drawing.Size(75, 23);
9495 this.OkBtn.TabIndex = 11;
@@ -148,7 +149,7 @@
148149 0,
149150 -2147483648});
150151 this.CdNum.Name = "CdNum";
151- this.CdNum.Size = new System.Drawing.Size(95, 19);
152+ this.CdNum.Size = new System.Drawing.Size(114, 19);
152153 this.CdNum.TabIndex = 14;
153154 //
154155 // CdLbl
@@ -186,14 +187,25 @@
186187 0,
187188 -2147483648});
188189 this.GCdNum.Name = "GCdNum";
189- this.GCdNum.Size = new System.Drawing.Size(95, 19);
190+ this.GCdNum.Size = new System.Drawing.Size(114, 19);
190191 this.GCdNum.TabIndex = 14;
191192 //
193+ // MaxBtn
194+ //
195+ this.MaxBtn.Location = new System.Drawing.Point(214, 46);
196+ this.MaxBtn.Name = "MaxBtn";
197+ this.MaxBtn.Size = new System.Drawing.Size(27, 23);
198+ this.MaxBtn.TabIndex = 15;
199+ this.MaxBtn.Text = "△";
200+ this.MaxBtn.UseVisualStyleBackColor = true;
201+ this.MaxBtn.Click += new System.EventHandler(this.MaxBtn_Click);
202+ //
192203 // StationDialog
193204 //
194205 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
195206 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
196- this.ClientSize = new System.Drawing.Size(201, 189);
207+ this.ClientSize = new System.Drawing.Size(244, 189);
208+ this.Controls.Add(this.MaxBtn);
197209 this.Controls.Add(this.GCdNum);
198210 this.Controls.Add(this.CdNum);
199211 this.Controls.Add(this.label3);
@@ -234,5 +246,6 @@
234246 private System.Windows.Forms.Label CdLbl;
235247 private System.Windows.Forms.Label label5;
236248 private System.Windows.Forms.NumericUpDown GCdNum;
249+ private System.Windows.Forms.Button MaxBtn;
237250 }
238251 }
\ No newline at end of file
--- WhereTrainBuild/Dialog/StationDialog.cs (revision 60)
+++ WhereTrainBuild/Dialog/StationDialog.cs (revision 61)
@@ -81,5 +81,16 @@
8181 {
8282 CdNum.Value = NameTxt.Text.GetHashCode();
8383 }
84+
85+ /// <summary>
86+ /// 最大ボタン押下
87+ /// </summary>
88+ /// <param name="sender"></param>
89+ /// <param name="e"></param>
90+ private void MaxBtn_Click(object sender, EventArgs e)
91+ {
92+ var maxcd = m_station.Manager.StationList().Max( info => info.StationCd ) + 1;
93+ CdNum.Value = maxcd;
94+ }
8495 }
8596 }
--- WhereTrainBuild/MapForm.cs (revision 60)
+++ WhereTrainBuild/MapForm.cs (revision 61)
@@ -560,6 +560,7 @@
560560 var stationinfo = new StationInfoData();
561561 stationinfo.Latitude = dLat;
562562 stationinfo.Longitude = dLng;
563+ stationinfo.Manager = m_factory.GetStationManager();
563564 dlg.SetStation(stationinfo);
564565 if (dlg.ShowDialog(this) == DialogResult.OK)
565566 {
@@ -1012,6 +1013,7 @@
10121013 var stationinfo = new StationInfoData();
10131014 stationinfo.Latitude = crossresult.CrossPoint.lat;
10141015 stationinfo.Longitude = crossresult.CrossPoint.lng;
1016+ stationinfo.Manager = m_factory.GetStationManager();
10151017 dlg.SetStation(stationinfo);
10161018 if (dlg.ShowDialog(this) == DialogResult.OK)
10171019 {
旧リポジトリブラウザで表示