diff --git a/EcomAnalysis/Form1.Designer.cs b/EcomAnalysis/Form1.Designer.cs
index 3747a5c..7c9cb0d 100644
--- a/EcomAnalysis/Form1.Designer.cs
+++ b/EcomAnalysis/Form1.Designer.cs
@@ -64,6 +64,8 @@
this.columnHeader12 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader13 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.label13 = new System.Windows.Forms.Label();
+ this.BtnOpenLog = new System.Windows.Forms.Button();
+ this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.SuspendLayout();
//
// label1
@@ -447,12 +449,31 @@
this.label13.TabIndex = 25;
this.label13.Text = "HRV解析";
//
+ // BtnOpenLog
+ //
+ this.BtnOpenLog.Font = new System.Drawing.Font("MS UI Gothic", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+ this.BtnOpenLog.Location = new System.Drawing.Point(24, 621);
+ this.BtnOpenLog.Name = "BtnOpenLog";
+ this.BtnOpenLog.Size = new System.Drawing.Size(173, 38);
+ this.BtnOpenLog.TabIndex = 26;
+ this.BtnOpenLog.Text = "Logファイルを開く";
+ this.BtnOpenLog.UseVisualStyleBackColor = true;
+ this.BtnOpenLog.Click += new System.EventHandler(this.BtnOpenLog_Click);
+ //
+ // openFileDialog1
+ //
+ this.openFileDialog1.DefaultExt = "csv";
+ this.openFileDialog1.FileName = "openFileDialog1";
+ this.openFileDialog1.Filter = "CSVファイル|*.csv";
+ this.openFileDialog1.Title = "Logファイルを開く";
+ //
// Form1
//
this.AllowDrop = true;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(723, 671);
+ this.Controls.Add(this.BtnOpenLog);
this.Controls.Add(this.label13);
this.Controls.Add(this.listView2);
this.Controls.Add(this.TxtVisit);
@@ -532,6 +553,8 @@
private System.Windows.Forms.ColumnHeader columnHeader12;
private System.Windows.Forms.ColumnHeader columnHeader13;
private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.Button BtnOpenLog;
+ private System.Windows.Forms.OpenFileDialog openFileDialog1;
}
}
diff --git a/EcomAnalysis/Form1.cs b/EcomAnalysis/Form1.cs
index 5c75eef..593828c 100644
--- a/EcomAnalysis/Form1.cs
+++ b/EcomAnalysis/Form1.cs
@@ -421,5 +421,17 @@
Analyze();
}
}
+
+ ///
+ /// ログファイルを開くボタン
+ ///
+ ///
+ ///
+ private void BtnOpenLog_Click(object sender, EventArgs e) {
+ if (openFileDialog1.ShowDialog() == DialogResult.Cancel) return;
+ ClearData();
+ ReadCSV(openFileDialog1.FileName);
+ Analyze();
+ }
}
}
diff --git a/EcomAnalysis/Form1.resx b/EcomAnalysis/Form1.resx
index 1ac257b..a6dace9 100644
--- a/EcomAnalysis/Form1.resx
+++ b/EcomAnalysis/Form1.resx
@@ -120,4 +120,7 @@
17, 17
+
+ 165, 17
+
\ No newline at end of file