AIParkingApplicationForm - using namepsace for shorten usage.
This commit is contained in:
parent
f29ad3c5c4
commit
960e8cf76d
|
@ -1,4 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
|
using System.Drawing;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace AIParkingApplication
|
namespace AIParkingApplication
|
||||||
|
@ -23,7 +24,7 @@ namespace AIParkingApplication
|
||||||
this.configOnWeb = configOnWeb;
|
this.configOnWeb = configOnWeb;
|
||||||
|
|
||||||
sidebar = new Sidebar(apiController);
|
sidebar = new Sidebar(apiController);
|
||||||
sidebar.Location = new System.Drawing.Point(0, 0);
|
sidebar.Location = new Point(0, 0);
|
||||||
Controls.Add(sidebar);
|
Controls.Add(sidebar);
|
||||||
|
|
||||||
c3Device = new C3DeviceController("192.168.1.200");
|
c3Device = new C3DeviceController("192.168.1.200");
|
||||||
|
@ -39,7 +40,7 @@ namespace AIParkingApplication
|
||||||
}
|
}
|
||||||
|
|
||||||
statusBar = new StatusBar("192.168.1.122", "192.168.1.200", TimeSpan.FromSeconds(1));
|
statusBar = new StatusBar("192.168.1.122", "192.168.1.200", TimeSpan.FromSeconds(1));
|
||||||
statusBar.Location = new System.Drawing.Point(0, sidebar.Location.Y + sidebar.Height + 20);
|
statusBar.Location = new Point(0, sidebar.Location.Y + sidebar.Height + 25);
|
||||||
statusBar.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
statusBar.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
||||||
Controls.Add(statusBar);
|
Controls.Add(statusBar);
|
||||||
|
|
||||||
|
@ -72,12 +73,12 @@ namespace AIParkingApplication
|
||||||
private void UpdateLaneInOut()
|
private void UpdateLaneInOut()
|
||||||
{
|
{
|
||||||
laneIn12.DoorId = 1;
|
laneIn12.DoorId = 1;
|
||||||
laneIn12.Location = new System.Drawing.Point(sidebar.Location.X + sidebar.Width + 20, menuStrip.Height);
|
laneIn12.Location = new Point(sidebar.Location.X + sidebar.Width + 20, menuStrip.Height);
|
||||||
laneIn12.Show();
|
laneIn12.Show();
|
||||||
laneIn12.Start();
|
laneIn12.Start();
|
||||||
|
|
||||||
laneOut34.DoorId = 2;
|
laneOut34.DoorId = 2;
|
||||||
laneOut34.Location = new System.Drawing.Point(laneIn12.Location.X + laneIn12.Width + 20, menuStrip.Height);
|
laneOut34.Location = new Point(laneIn12.Location.X + laneIn12.Width + 20, menuStrip.Height);
|
||||||
laneOut34.Show();
|
laneOut34.Show();
|
||||||
laneOut34.Start();
|
laneOut34.Start();
|
||||||
}
|
}
|
||||||
|
@ -85,12 +86,12 @@ namespace AIParkingApplication
|
||||||
private void UpdateLaneInIn()
|
private void UpdateLaneInIn()
|
||||||
{
|
{
|
||||||
laneIn12.DoorId = 1;
|
laneIn12.DoorId = 1;
|
||||||
laneIn12.Location = new System.Drawing.Point(sidebar.Location.X + sidebar.Width + 20, menuStrip.Height);
|
laneIn12.Location = new Point(sidebar.Location.X + sidebar.Width + 20, menuStrip.Height);
|
||||||
laneIn12.Show();
|
laneIn12.Show();
|
||||||
laneIn12.Start();
|
laneIn12.Start();
|
||||||
|
|
||||||
laneIn56.DoorId = 2;
|
laneIn56.DoorId = 2;
|
||||||
laneIn56.Location = new System.Drawing.Point(laneIn12.Location.X + laneIn12.Width + 20, menuStrip.Height);
|
laneIn56.Location = new Point(laneIn12.Location.X + laneIn12.Width + 20, menuStrip.Height);
|
||||||
laneIn56.Show();
|
laneIn56.Show();
|
||||||
laneIn56.Start();
|
laneIn56.Start();
|
||||||
}
|
}
|
||||||
|
@ -98,12 +99,12 @@ namespace AIParkingApplication
|
||||||
private void UpdateLaneOutIn()
|
private void UpdateLaneOutIn()
|
||||||
{
|
{
|
||||||
laneOut78.DoorId = 1;
|
laneOut78.DoorId = 1;
|
||||||
laneOut78.Location = new System.Drawing.Point(sidebar.Location.X + sidebar.Width + 20, menuStrip.Height);
|
laneOut78.Location = new Point(sidebar.Location.X + sidebar.Width + 20, menuStrip.Height);
|
||||||
laneOut78.Show();
|
laneOut78.Show();
|
||||||
laneOut78.Start();
|
laneOut78.Start();
|
||||||
|
|
||||||
laneIn56.DoorId = 2;
|
laneIn56.DoorId = 2;
|
||||||
laneIn56.Location = new System.Drawing.Point(laneOut78.Location.X + laneOut78.Width + 20, menuStrip.Height);
|
laneIn56.Location = new Point(laneOut78.Location.X + laneOut78.Width + 20, menuStrip.Height);
|
||||||
laneIn56.Show();
|
laneIn56.Show();
|
||||||
laneIn56.Start();
|
laneIn56.Start();
|
||||||
}
|
}
|
||||||
|
@ -111,12 +112,12 @@ namespace AIParkingApplication
|
||||||
private void UpdateLaneOutOut()
|
private void UpdateLaneOutOut()
|
||||||
{
|
{
|
||||||
laneOut78.DoorId = 1;
|
laneOut78.DoorId = 1;
|
||||||
laneOut78.Location = new System.Drawing.Point(sidebar.Location.X + sidebar.Width + 20, menuStrip.Height);
|
laneOut78.Location = new Point(sidebar.Location.X + sidebar.Width + 20, menuStrip.Height);
|
||||||
laneOut78.Show();
|
laneOut78.Show();
|
||||||
laneOut78.Start();
|
laneOut78.Start();
|
||||||
|
|
||||||
laneOut34.DoorId = 2;
|
laneOut34.DoorId = 2;
|
||||||
laneOut34.Location = new System.Drawing.Point(laneOut78.Location.X + laneOut78.Width + 20, menuStrip.Height);
|
laneOut34.Location = new Point(laneOut78.Location.X + laneOut78.Width + 20, menuStrip.Height);
|
||||||
laneOut34.Show();
|
laneOut34.Show();
|
||||||
laneOut34.Start();
|
laneOut34.Start();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user