diff --git a/WindowsFormsApp01/.vs/WindowsFormsApp01/v16/.suo b/WindowsFormsApp01/.vs/WindowsFormsApp01/v16/.suo index 11fab08..8b5cfe0 100644 Binary files a/WindowsFormsApp01/.vs/WindowsFormsApp01/v16/.suo and b/WindowsFormsApp01/.vs/WindowsFormsApp01/v16/.suo differ diff --git a/WindowsFormsApp01/WindowsFormsApp01/Form1.cs b/WindowsFormsApp01/WindowsFormsApp01/Form1.cs index 0289752..438dc3a 100644 --- a/WindowsFormsApp01/WindowsFormsApp01/Form1.cs +++ b/WindowsFormsApp01/WindowsFormsApp01/Form1.cs @@ -183,7 +183,22 @@ namespace WindowsFormsApp01 private void Button4_Click(object sender, EventArgs e) { - calc.CalcIt(); + try + { + calc.CalcIt(); + } + catch (DivideByZeroException) + { + label4.Text = "Fehler: div by zero"; + } + catch (Exception) + { + + + label4.Text = "Fehler"; + + + } } public void CalcFinished(CalcEventArgs e) @@ -214,6 +229,7 @@ namespace WindowsFormsApp01 { int res = DateTime.Now.Second; + res = res / 0; var e = new CalcEventArgs(res); //trigger handler diff --git a/WindowsFormsApp01/WindowsFormsApp01/bin/Debug/WindowsFormsApp01.exe b/WindowsFormsApp01/WindowsFormsApp01/bin/Debug/WindowsFormsApp01.exe index c23fdf8..fcd5c41 100644 Binary files a/WindowsFormsApp01/WindowsFormsApp01/bin/Debug/WindowsFormsApp01.exe and b/WindowsFormsApp01/WindowsFormsApp01/bin/Debug/WindowsFormsApp01.exe differ diff --git a/WindowsFormsApp01/WindowsFormsApp01/bin/Debug/WindowsFormsApp01.pdb b/WindowsFormsApp01/WindowsFormsApp01/bin/Debug/WindowsFormsApp01.pdb index 91634f0..80e560a 100644 Binary files a/WindowsFormsApp01/WindowsFormsApp01/bin/Debug/WindowsFormsApp01.pdb and b/WindowsFormsApp01/WindowsFormsApp01/bin/Debug/WindowsFormsApp01.pdb differ diff --git a/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.csprojAssemblyReference.cache b/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.csprojAssemblyReference.cache index fefe00c..8925826 100644 Binary files a/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.csprojAssemblyReference.cache and b/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.csprojAssemblyReference.cache differ diff --git a/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.exe b/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.exe index c23fdf8..fcd5c41 100644 Binary files a/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.exe and b/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.exe differ diff --git a/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.pdb b/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.pdb index 91634f0..80e560a 100644 Binary files a/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.pdb and b/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.pdb differ diff --git a/winVCR/VCRlogic/SMtape.cs b/winVCR/VCRlogic/SMtape.cs index 8df2235..4f4677f 100644 --- a/winVCR/VCRlogic/SMtape.cs +++ b/winVCR/VCRlogic/SMtape.cs @@ -12,6 +12,9 @@ public class SMtape } + + + public class SMtapeNoTapeIn : SMtape { } diff --git a/winVCR/winVCR/Form1.Designer.cs b/winVCR/winVCR/Form1.Designer.cs index f8b85e0..a7097bb 100644 --- a/winVCR/winVCR/Form1.Designer.cs +++ b/winVCR/winVCR/Form1.Designer.cs @@ -31,7 +31,6 @@ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.btnPlay = new System.Windows.Forms.Button(); - this.Power = new System.Windows.Forms.Button(); this.Rewind = new System.Windows.Forms.Button(); this.btnRecord = new System.Windows.Forms.Button(); this.statusLabel = new System.Windows.Forms.Label(); @@ -57,20 +56,10 @@ this.btnPlay.Name = "btnPlay"; this.btnPlay.Size = new System.Drawing.Size(75, 23); this.btnPlay.TabIndex = 1; - this.btnPlay.Text = "btnPlay"; + this.btnPlay.Text = "Play/Pause"; this.btnPlay.UseVisualStyleBackColor = false; this.btnPlay.Click += new System.EventHandler(this.BtnPlay_Click); // - // Power - // - this.Power.Location = new System.Drawing.Point(701, 249); - this.Power.Name = "Power"; - this.Power.Size = new System.Drawing.Size(57, 23); - this.Power.TabIndex = 2; - this.Power.Text = "Power"; - this.Power.UseVisualStyleBackColor = true; - this.Power.Click += new System.EventHandler(this.Power_Click); - // // Rewind // this.Rewind.Location = new System.Drawing.Point(586, 159); @@ -132,7 +121,6 @@ this.Controls.Add(this.statusLabel); this.Controls.Add(this.btnRecord); this.Controls.Add(this.Rewind); - this.Controls.Add(this.Power); this.Controls.Add(this.btnPlay); this.Controls.Add(this.pictureBox1); this.Name = "Form1"; @@ -148,7 +136,6 @@ private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.Button btnPlay; - private System.Windows.Forms.Button Power; private System.Windows.Forms.Button Rewind; private System.Windows.Forms.Button btnRecord; private System.Windows.Forms.Label statusLabel;