diff --git a/ISCamRecorder/MainForm.Designer.cs b/ISCamRecorder/MainForm.Designer.cs index c39de7b..c4a5a12 100644 --- a/ISCamRecorder/MainForm.Designer.cs +++ b/ISCamRecorder/MainForm.Designer.cs @@ -23,7 +23,7 @@ /// コード エディターで変更しないでください。 /// private void InitializeComponent() { - this.button2 = new System.Windows.Forms.Button(); + this.BtnSetProperty = new System.Windows.Forms.Button(); this.ChkTrigger = new System.Windows.Forms.CheckBox(); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.splitContainer2 = new System.Windows.Forms.SplitContainer(); @@ -72,15 +72,15 @@ ((System.ComponentModel.ISupportInitialize)(this.icRight)).BeginInit(); this.SuspendLayout(); // - // button2 + // BtnSetProperty // - this.button2.Location = new System.Drawing.Point(12, 12); - this.button2.Name = "button2"; - this.button2.Size = new System.Drawing.Size(75, 34); - this.button2.TabIndex = 5; - this.button2.Text = "プロパティ"; - this.button2.UseVisualStyleBackColor = true; - this.button2.Click += new System.EventHandler(this.SetProperty_Click); + this.BtnSetProperty.Location = new System.Drawing.Point(12, 12); + this.BtnSetProperty.Name = "BtnSetProperty"; + this.BtnSetProperty.Size = new System.Drawing.Size(75, 34); + this.BtnSetProperty.TabIndex = 5; + this.BtnSetProperty.Text = "プロパティ"; + this.BtnSetProperty.UseVisualStyleBackColor = true; + this.BtnSetProperty.Click += new System.EventHandler(this.SetProperty_Click); // // ChkTrigger // @@ -385,7 +385,7 @@ this.Controls.Add(this.TxtRecodingDulation); this.Controls.Add(this.splitContainer1); this.Controls.Add(this.ChkTrigger); - this.Controls.Add(this.button2); + this.Controls.Add(this.BtnSetProperty); this.Name = "MainForm"; this.Text = "マルチカメラ撮影ソフトウェア by 千葉大学フロンティア医工学センター"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing); @@ -423,7 +423,7 @@ } #endregion - private System.Windows.Forms.Button button2; + private System.Windows.Forms.Button BtnSetProperty; private System.Windows.Forms.CheckBox ChkTrigger; private System.Windows.Forms.SplitContainer splitContainer1; private System.Windows.Forms.SplitContainer splitContainer2; diff --git a/ISCamRecorder/MainForm.cs b/ISCamRecorder/MainForm.cs index b5e0051..90c91e7 100644 --- a/ISCamRecorder/MainForm.cs +++ b/ISCamRecorder/MainForm.cs @@ -190,7 +190,11 @@ if (BtnRecodeMovie.Text.Equals("中断")) { _Cameras.ForEach(c => c.StopRecoding()); } else { + BtnRecodeMovie.Enabled = false; + BtnSetProperty.Enabled = false; BtnRecodeMovie.Text = "撮影中"; + var originalColor = BtnRecodeMovie.BackColor; + BtnRecodeMovie.BackColor = Color.Orange; // 録画モードへ変更 _Cameras.ForEach(c => c.ChangeSink(true)); // 録画条件設定 @@ -209,6 +213,7 @@ Task.WaitAll(tasks); // 保存 BtnRecodeMovie.Text = "保存中"; + BtnRecodeMovie.BackColor = Color.Aqua; for (var i = 0; i < _Cameras.Count; i++) { var cam = _Cameras[i]; tasks[i] = Task.Run(() => cam.SaveToFile(outputDir)); @@ -218,6 +223,9 @@ // プレビューモードへ変更 _Cameras.ForEach(c => c.ChangeSink(false)); BtnRecodeMovie.Text = "動画撮影"; + BtnRecodeMovie.BackColor = originalColor; + BtnRecodeMovie.Enabled = true; + BtnSetProperty.Enabled = true; } } }