diff --git a/TIASshot/Form1.Designer.cs b/TIASshot/Form1.Designer.cs index 3469127..f7141dc 100644 --- a/TIASshot/Form1.Designer.cs +++ b/TIASshot/Form1.Designer.cs @@ -43,6 +43,7 @@ this.label7 = new System.Windows.Forms.Label(); this.txtMultiShotsInterval = new System.Windows.Forms.TextBox(); this.label8 = new System.Windows.Forms.Label(); + this.btnOpenDataFolder = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.picPreview)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.picDisplay)).BeginInit(); this.SuspendLayout(); @@ -50,9 +51,9 @@ // btnShotOne // this.btnShotOne.Font = new System.Drawing.Font("MS UI Gothic", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); - this.btnShotOne.Location = new System.Drawing.Point(12, 176); + this.btnShotOne.Location = new System.Drawing.Point(15, 176); this.btnShotOne.Name = "btnShotOne"; - this.btnShotOne.Size = new System.Drawing.Size(271, 47); + this.btnShotOne.Size = new System.Drawing.Size(268, 47); this.btnShotOne.TabIndex = 0; this.btnShotOne.Text = "1枚撮影"; this.btnShotOne.UseVisualStyleBackColor = true; @@ -121,9 +122,9 @@ // this.btnShotMulti.AllowDrop = true; this.btnShotMulti.Font = new System.Drawing.Font("MS UI Gothic", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); - this.btnShotMulti.Location = new System.Drawing.Point(12, 316); + this.btnShotMulti.Location = new System.Drawing.Point(15, 316); this.btnShotMulti.Name = "btnShotMulti"; - this.btnShotMulti.Size = new System.Drawing.Size(271, 49); + this.btnShotMulti.Size = new System.Drawing.Size(268, 49); this.btnShotMulti.TabIndex = 6; this.btnShotMulti.Text = "連続撮影"; this.btnShotMulti.UseVisualStyleBackColor = true; @@ -148,17 +149,17 @@ this.txtMessage.Location = new System.Drawing.Point(15, 45); this.txtMessage.Name = "txtMessage"; this.txtMessage.ReadOnly = true; - this.txtMessage.Size = new System.Drawing.Size(271, 26); + this.txtMessage.Size = new System.Drawing.Size(268, 26); this.txtMessage.TabIndex = 9; this.txtMessage.Text = "舌診チャートを設置してください."; // // txtSaveFolder // this.txtSaveFolder.Font = new System.Drawing.Font("MS UI Gothic", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); - this.txtSaveFolder.Location = new System.Drawing.Point(15, 459); + this.txtSaveFolder.Location = new System.Drawing.Point(78, 463); this.txtSaveFolder.Name = "txtSaveFolder"; this.txtSaveFolder.ReadOnly = true; - this.txtSaveFolder.Size = new System.Drawing.Size(268, 23); + this.txtSaveFolder.Size = new System.Drawing.Size(205, 23); this.txtSaveFolder.TabIndex = 10; // // label3 @@ -250,11 +251,23 @@ this.label8.TabIndex = 19; this.label8.Text = "ミリ秒"; // + // btnOpenDataFolder + // + this.btnOpenDataFolder.Font = new System.Drawing.Font("MS UI Gothic", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + this.btnOpenDataFolder.Location = new System.Drawing.Point(15, 459); + this.btnOpenDataFolder.Name = "btnOpenDataFolder"; + this.btnOpenDataFolder.Size = new System.Drawing.Size(57, 27); + this.btnOpenDataFolder.TabIndex = 20; + this.btnOpenDataFolder.Text = "開く"; + this.btnOpenDataFolder.UseVisualStyleBackColor = true; + this.btnOpenDataFolder.Click += new System.EventHandler(this.btnOpenDataFolder_Click); + // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(753, 634); + this.Controls.Add(this.btnOpenDataFolder); this.Controls.Add(this.label8); this.Controls.Add(this.txtMultiShotsInterval); this.Controls.Add(this.label7); @@ -308,6 +321,7 @@ private System.Windows.Forms.Label label7; private System.Windows.Forms.TextBox txtMultiShotsInterval; private System.Windows.Forms.Label label8; + private System.Windows.Forms.Button btnOpenDataFolder; } } diff --git a/TIASshot/Form1.cs b/TIASshot/Form1.cs index 6f4208e..addd421 100644 --- a/TIASshot/Form1.cs +++ b/TIASshot/Form1.cs @@ -150,5 +150,14 @@ btnShotOne.Enabled = enable; btnShotMulti.Enabled = enable; } + + /// + /// データフォルダを開く + /// + /// + /// + private void btnOpenDataFolder_Click(object sender, EventArgs e) { + System.Diagnostics.Process.Start(txtSaveFolder.Text); + } } }