diff --git a/WindowsFormsApp01/.vs/WindowsFormsApp01/v16/.suo b/WindowsFormsApp01/.vs/WindowsFormsApp01/v16/.suo
index 700b1cb..11fab08 100644
Binary files a/WindowsFormsApp01/.vs/WindowsFormsApp01/v16/.suo and b/WindowsFormsApp01/.vs/WindowsFormsApp01/v16/.suo differ
diff --git a/WindowsFormsApp01/.vs/WindowsFormsApp01/v16/Server/sqlite3/storage.ide b/WindowsFormsApp01/.vs/WindowsFormsApp01/v16/Server/sqlite3/storage.ide
index adf6165..85015d2 100644
Binary files a/WindowsFormsApp01/.vs/WindowsFormsApp01/v16/Server/sqlite3/storage.ide and b/WindowsFormsApp01/.vs/WindowsFormsApp01/v16/Server/sqlite3/storage.ide differ
diff --git a/WindowsFormsApp01/WindowsFormsApp01/Form1.Designer.cs b/WindowsFormsApp01/WindowsFormsApp01/Form1.Designer.cs
index e3b14ff..e587e43 100644
--- a/WindowsFormsApp01/WindowsFormsApp01/Form1.Designer.cs
+++ b/WindowsFormsApp01/WindowsFormsApp01/Form1.Designer.cs
@@ -38,6 +38,9 @@
this.button3 = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
+ this.button4 = new System.Windows.Forms.Button();
+ this.label4 = new System.Windows.Forms.Label();
+ this.label5 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit();
@@ -142,6 +145,34 @@
this.label3.TabIndex = 9;
this.label3.Text = "label3";
//
+ // button4
+ //
+ this.button4.Location = new System.Drawing.Point(356, 57);
+ this.button4.Name = "button4";
+ this.button4.Size = new System.Drawing.Size(75, 23);
+ this.button4.TabIndex = 10;
+ this.button4.Text = "button4";
+ this.button4.UseVisualStyleBackColor = true;
+ this.button4.Click += new System.EventHandler(this.Button4_Click);
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(592, 66);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(35, 13);
+ this.label4.TabIndex = 11;
+ this.label4.Text = "label4";
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.Location = new System.Drawing.Point(700, 88);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(35, 13);
+ this.label5.TabIndex = 12;
+ this.label5.Text = "label5";
+ //
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -149,6 +180,9 @@
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
this.ClientSize = new System.Drawing.Size(800, 450);
+ this.Controls.Add(this.label5);
+ this.Controls.Add(this.label4);
+ this.Controls.Add(this.button4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.button3);
@@ -184,6 +218,9 @@
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Button button4;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.Label label5;
}
}
diff --git a/WindowsFormsApp01/WindowsFormsApp01/Form1.cs b/WindowsFormsApp01/WindowsFormsApp01/Form1.cs
index 3d1d323..0289752 100644
--- a/WindowsFormsApp01/WindowsFormsApp01/Form1.cs
+++ b/WindowsFormsApp01/WindowsFormsApp01/Form1.cs
@@ -52,6 +52,8 @@ namespace WindowsFormsApp01
{
InitializeComponent();
label1.Text = " ";
+
+ calc.CalcFinished += CalcFinished;
}
private void Button1_Click(object sender, EventArgs e)
@@ -72,18 +74,6 @@ namespace WindowsFormsApp01
}
-
-
-
-
-
-
-
-
-
-
-
-
private void Panel1_Paint(object sender, PaintEventArgs e)
{
Graphics graphics = e.Graphics;
@@ -92,29 +82,27 @@ namespace WindowsFormsApp01
using (var p = _pen)
{
+ //y axis
+ graphics.DrawLine(p, 10, 10, 10, 246);
- //y axis
- graphics.DrawLine(p, 10, 10, 10, 246);
+ //x axis
+ graphics.DrawLine(p, 10, 246, 502, 246);
- //x axis
- graphics.DrawLine(p, 10, 246, 502, 246);
+ //arrow y axis
+ graphics.DrawLine(p, 5, 15, 10, 10);
+ graphics.DrawLine(p, 15, 15, 10, 10);
- //arrow y axis
- graphics.DrawLine(p, 5, 15, 10, 10);
- graphics.DrawLine(p, 15, 15, 10, 10);
-
- //arrow x axis
- graphics.DrawLine(p, 498, 241, 502, 246);
- graphics.DrawLine(p, 498, 251, 502, 246);
+ //arrow x axis
+ graphics.DrawLine(p, 498, 241, 502, 246);
+ graphics.DrawLine(p, 498, 251, 502, 246);
}
Brush aBrush = (Brush) Brushes.Red;
- for (int i = 10; i < (502 ); i++)
+ for (int i = 10; i < (502); i++)
{
-
- int y = (int)( 246 - (((Math.Log(i) * 10) - 23) *_scale ) );
+ int y = (int) (246 - (((Math.Log(i) * 10) - 23) * _scale));
graphics.FillRectangle(aBrush, i, y, 2, 2);
}
@@ -129,7 +117,6 @@ namespace WindowsFormsApp01
private void TrackBar1_Scroll(object sender, EventArgs e)
{
-
_scale = (int) trackBar1.Value;
panel1.Refresh();
@@ -137,14 +124,10 @@ namespace WindowsFormsApp01
private void Panel1_AutoSizeChanged(object sender, EventArgs e)
{
-
-
-
}
private void Form1_Resize(object sender, EventArgs e)
{
-
_x = panel1.Width;
_y = panel1.Height;
panel1.Invalidate();
@@ -158,24 +141,22 @@ namespace WindowsFormsApp01
string s3 = String.Empty;
- Stopwatch sw = new Stopwatch();
+ Stopwatch sw = new Stopwatch();
- sw.Start();
+ sw.Start();
for (int i = 0; i < 50000; i++)
{
- s3 = s3 + s1 + s2;
+ s3 = s3 + s1 + s2;
}
sw.Stop();
label3.Text = sw.ElapsedMilliseconds.ToString();
-
}
private void Button3_Click(object sender, EventArgs e)
{
-
string s1 = "hello";
string s2 = "Offenburg";
@@ -199,5 +180,48 @@ namespace WindowsFormsApp01
label2.Text = sw.ElapsedMilliseconds.ToString();
}
+
+ private void Button4_Click(object sender, EventArgs e)
+ {
+ calc.CalcIt();
+ }
+
+ public void CalcFinished(CalcEventArgs e)
+ {
+ label4.Text = e.Result.ToString();
+ }
+ }
+
+ public class CalcEventArgs
+ {
+ public CalcEventArgs(int result)
+ {
+ Result = result;
+ }
+
+ public int Result { get; private set; }
+ }
+
+
+ public static class calc
+ {
+ public delegate void CalcEventHandler(CalcEventArgs e);
+
+ public static event CalcEventHandler CalcFinished;
+
+
+ public static void CalcIt()
+ {
+ int res = DateTime.Now.Second;
+
+
+ var e = new CalcEventArgs(res);
+ //trigger handler
+
+ if (CalcFinished != null)
+ {
+ CalcFinished(e);
+ }
+ }
}
}
\ No newline at end of file
diff --git a/WindowsFormsApp01/WindowsFormsApp01/bin/Debug/WindowsFormsApp01.exe b/WindowsFormsApp01/WindowsFormsApp01/bin/Debug/WindowsFormsApp01.exe
index fc2c1ae..c23fdf8 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 aa259c4..91634f0 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.csproj.GenerateResource.cache b/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.csproj.GenerateResource.cache
index 9b488d3..a4d58a1 100644
Binary files a/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.csproj.GenerateResource.cache and b/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.csproj.GenerateResource.cache differ
diff --git a/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.csprojAssemblyReference.cache b/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.csprojAssemblyReference.cache
index cae45a8..fefe00c 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 fc2c1ae..c23fdf8 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 aa259c4..91634f0 100644
Binary files a/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.pdb and b/WindowsFormsApp01/WindowsFormsApp01/obj/Debug/WindowsFormsApp01.pdb differ
diff --git a/winVCR/SMTape.cs b/winVCR/SMTape.cs
new file mode 100644
index 0000000..d555ecb
--- /dev/null
+++ b/winVCR/SMTape.cs
@@ -0,0 +1,8 @@
+using System;
+
+public class Class1
+{
+ public Class1()
+ {
+ }
+}
diff --git a/winVCR/VCRlogic/Properties/AssemblyInfo.cs b/winVCR/VCRlogic/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..4001fb7
--- /dev/null
+++ b/winVCR/VCRlogic/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("VCRlogic")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("VCRlogic")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2019")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("74f418c8-f030-41c7-ba8d-8a9b57253e45")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/winVCR/VCRlogic/SMtape.cs b/winVCR/VCRlogic/SMtape.cs
new file mode 100644
index 0000000..8df2235
--- /dev/null
+++ b/winVCR/VCRlogic/SMtape.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Runtime.CompilerServices;
+
+
+public class SMtape
+{
+ private SMtape _concreteState;
+
+ public SMtape()
+ {
+ }
+}
+
+
+public class SMtapeNoTapeIn : SMtape
+{
+}
+
+
+public class SMtapeTapeInNotEnd : SMtape
+{
+}
+
+public class SMtapeTapeInEnd : SMtape
+{
+}
\ No newline at end of file
diff --git a/winVCR/VCRlogic/SMvcr.cs b/winVCR/VCRlogic/SMvcr.cs
new file mode 100644
index 0000000..6638d84
--- /dev/null
+++ b/winVCR/VCRlogic/SMvcr.cs
@@ -0,0 +1,42 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+
+public class SMvcr
+{
+ private string _labelText;
+
+ private SMvcr _concreteState;
+
+ public string getLabelText()
+ {
+ return _labelText;
+ }
+}
+
+
+public class SMvcrStandBy : SMvcr
+{
+}
+
+
+public class SMvcrPlay : SMvcr
+{
+}
+
+
+public class SMvcrRewind : SMvcr
+{
+}
+
+public class SMvcrFastForward : SMvcr
+{
+}
+
+
+public class SMvcrRecord : SMvcr
+{
+}
\ No newline at end of file
diff --git a/winVCR/VCRlogic/VCRlogic.csproj b/winVCR/VCRlogic/VCRlogic.csproj
new file mode 100644
index 0000000..40f4925
--- /dev/null
+++ b/winVCR/VCRlogic/VCRlogic.csproj
@@ -0,0 +1,49 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {74F418C8-F030-41C7-BA8D-8A9B57253E45}
+ Library
+ Properties
+ VCRlogic
+ VCRlogic
+ v4.7.2
+ 512
+ true
+
+
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/winVCR/VRClogic/Class1.vb b/winVCR/VRClogic/Class1.vb
index 875798b..581d3dc 100644
--- a/winVCR/VRClogic/Class1.vb
+++ b/winVCR/VRClogic/Class1.vb
@@ -1,3 +1,18 @@
Public Class Class1
+
+
+
+
+ Public Class SMvcr{
+
+ 0
+
+
+
+
+
+
+
+
End Class
diff --git a/winVCR/winVCR.sln b/winVCR/winVCR.sln
index eea15ce..d406c1f 100644
--- a/winVCR/winVCR.sln
+++ b/winVCR/winVCR.sln
@@ -5,7 +5,7 @@ VisualStudioVersion = 16.0.28729.10
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "winVCR", "winVCR\winVCR.csproj", "{AAA7DB8B-955C-4B17-8C2B-764CFC3702FF}"
EndProject
-Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "VRClogic", "VRClogic\VRClogic.vbproj", "{8BE90BB5-540B-429E-85CE-7BD395F665FA}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VCRlogic", "VCRlogic\VCRlogic.csproj", "{74F418C8-F030-41C7-BA8D-8A9B57253E45}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -17,10 +17,10 @@ Global
{AAA7DB8B-955C-4B17-8C2B-764CFC3702FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AAA7DB8B-955C-4B17-8C2B-764CFC3702FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AAA7DB8B-955C-4B17-8C2B-764CFC3702FF}.Release|Any CPU.Build.0 = Release|Any CPU
- {8BE90BB5-540B-429E-85CE-7BD395F665FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {8BE90BB5-540B-429E-85CE-7BD395F665FA}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {8BE90BB5-540B-429E-85CE-7BD395F665FA}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {8BE90BB5-540B-429E-85CE-7BD395F665FA}.Release|Any CPU.Build.0 = Release|Any CPU
+ {74F418C8-F030-41C7-BA8D-8A9B57253E45}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {74F418C8-F030-41C7-BA8D-8A9B57253E45}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {74F418C8-F030-41C7-BA8D-8A9B57253E45}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {74F418C8-F030-41C7-BA8D-8A9B57253E45}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/winVCR/winVCR/Form1.Designer.cs b/winVCR/winVCR/Form1.Designer.cs
index a997d2d..f8b85e0 100644
--- a/winVCR/winVCR/Form1.Designer.cs
+++ b/winVCR/winVCR/Form1.Designer.cs
@@ -35,6 +35,8 @@
this.Rewind = new System.Windows.Forms.Button();
this.btnRecord = new System.Windows.Forms.Button();
this.statusLabel = new System.Windows.Forms.Label();
+ this.btnInsertTape = new System.Windows.Forms.Button();
+ this.btnEjectTape = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
@@ -100,11 +102,33 @@
this.statusLabel.TabIndex = 5;
this.statusLabel.Text = "Status Label";
//
+ // btnInsertTape
+ //
+ this.btnInsertTape.Location = new System.Drawing.Point(201, 117);
+ this.btnInsertTape.Name = "btnInsertTape";
+ this.btnInsertTape.Size = new System.Drawing.Size(99, 44);
+ this.btnInsertTape.TabIndex = 6;
+ this.btnInsertTape.Text = "Insert Tape";
+ this.btnInsertTape.UseVisualStyleBackColor = true;
+ this.btnInsertTape.Click += new System.EventHandler(this.BtnInsertTape_Click);
+ //
+ // btnEjectTape
+ //
+ this.btnEjectTape.Location = new System.Drawing.Point(451, 117);
+ this.btnEjectTape.Name = "btnEjectTape";
+ this.btnEjectTape.Size = new System.Drawing.Size(99, 44);
+ this.btnEjectTape.TabIndex = 7;
+ this.btnEjectTape.Text = "Eject Tape";
+ this.btnEjectTape.UseVisualStyleBackColor = true;
+ this.btnEjectTape.Click += new System.EventHandler(this.BtnEjectTape_Click);
+ //
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
+ this.Controls.Add(this.btnEjectTape);
+ this.Controls.Add(this.btnInsertTape);
this.Controls.Add(this.statusLabel);
this.Controls.Add(this.btnRecord);
this.Controls.Add(this.Rewind);
@@ -128,6 +152,8 @@
private System.Windows.Forms.Button Rewind;
private System.Windows.Forms.Button btnRecord;
private System.Windows.Forms.Label statusLabel;
+ private System.Windows.Forms.Button btnInsertTape;
+ private System.Windows.Forms.Button btnEjectTape;
}
}
diff --git a/winVCR/winVCR/Form1.cs b/winVCR/winVCR/Form1.cs
index d1df6a4..276effb 100644
--- a/winVCR/winVCR/Form1.cs
+++ b/winVCR/winVCR/Form1.cs
@@ -19,22 +19,28 @@ namespace winVCR
private void BtnPlay_Click(object sender, EventArgs e)
{
-
}
private void Rewind_Click(object sender, EventArgs e)
{
-
}
private void BtnRecord_Click(object sender, EventArgs e)
{
-
}
private void Power_Click(object sender, EventArgs e)
{
+ }
+
+ private void BtnInsertTape_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void BtnEjectTape_Click(object sender, EventArgs e)
+ {
}
}
-}
+}
\ No newline at end of file
diff --git a/winVCR/winVCR/winVCR.csproj b/winVCR/winVCR/winVCR.csproj
index aa8252c..1ade938 100644
--- a/winVCR/winVCR/winVCR.csproj
+++ b/winVCR/winVCR/winVCR.csproj
@@ -79,11 +79,5 @@
-
-
- {8be90bb5-540b-429e-85ce-7bd395f665fa}
- VRClogic
-
-
\ No newline at end of file