From f879055feead3486ca0b598efe5def72dcfc9d63 Mon Sep 17 00:00:00 2001 From: DucDangAnh Date: Wed, 24 Jun 2020 16:26:09 +0700 Subject: [PATCH] Fix build. --- .../AIParkingApplicationForm.Designer.cs | 27 ------------------- .../AIParkingApplicationForm.cs | 18 +++++-------- 2 files changed, 7 insertions(+), 38 deletions(-) diff --git a/AIParkingApplication/AIParkingApplicationForm.Designer.cs b/AIParkingApplication/AIParkingApplicationForm.Designer.cs index 6c3bde7..7344900 100644 --- a/AIParkingApplication/AIParkingApplicationForm.Designer.cs +++ b/AIParkingApplication/AIParkingApplicationForm.Designer.cs @@ -28,37 +28,13 @@ /// private void InitializeComponent() { - this.button1 = new System.Windows.Forms.Button(); - this.button2 = new System.Windows.Forms.Button(); this.SuspendLayout(); // - // button1 - // - this.button1.Location = new System.Drawing.Point(840, 223); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(75, 23); - this.button1.TabIndex = 0; - this.button1.Text = "button1"; - this.button1.UseVisualStyleBackColor = true; - this.button1.Click += new System.EventHandler(this.button1_Click); - // - // button2 - // - this.button2.Location = new System.Drawing.Point(840, 267); - this.button2.Name = "button2"; - this.button2.Size = new System.Drawing.Size(75, 23); - this.button2.TabIndex = 0; - this.button2.Text = "button1"; - this.button2.UseVisualStyleBackColor = true; - this.button2.Click += new System.EventHandler(this.button2_Click); - // // AIParkingApplicationForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1350, 729); - this.Controls.Add(this.button2); - this.Controls.Add(this.button1); this.MinimumSize = new System.Drawing.Size(1366, 768); this.Name = "AIParkingApplicationForm"; this.Text = "AIParking Application"; @@ -67,9 +43,6 @@ } #endregion - - private System.Windows.Forms.Button button1; - private System.Windows.Forms.Button button2; } } diff --git a/AIParkingApplication/AIParkingApplicationForm.cs b/AIParkingApplication/AIParkingApplicationForm.cs index 5440bba..4e0141e 100644 --- a/AIParkingApplication/AIParkingApplicationForm.cs +++ b/AIParkingApplication/AIParkingApplicationForm.cs @@ -5,25 +5,21 @@ namespace AIParkingApplication public partial class AIParkingApplicationForm : Form { //@"C:\CongRa_1.mp4"; @"C:\HS_test.mp4"; @"rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov" - LaneIn laneIn = new LaneIn(@"C:\HS_test.mp4", @"rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov", true, false, false); public AIParkingApplicationForm() { InitializeComponent(); - + C3DeviceController c3Device = new C3DeviceController("192.168.1.200"); + LaneIn laneIn = new LaneIn(1, @"C:\HS_test.mp4", @"C:\HS_test.mp4", c3Device, true, false, true); //LaneIn laneOut = new LaneIn(); Controls.Add(laneIn); + laneIn.Start(); //laneOut.Location = new System.Drawing.Point(550, 0); //Controls.Add(laneOut); - } - private void button1_Click(object sender, System.EventArgs e) - { - laneIn.Stop(); - } - - private void button2_Click(object sender, System.EventArgs e) - { - laneIn.Start(); + //LaneIn laneIn1 = new LaneIn(@"C:\HS_test.mp4", @"C:\HS_test.mp4", c3Device, true, false, false); + //laneIn1.Location = new System.Drawing.Point(550, 0); + //Controls.Add(laneIn1); + //laneIn1.Start(); } } }