AIParkingApplicationForm - Refactor
This commit is contained in:
@@ -23,12 +23,16 @@ namespace AIParkingApplication
|
||||
InitializeComponent();
|
||||
this.apiController = apiController;
|
||||
this.configOnWeb = configOnWeb;
|
||||
c3Device = new C3DeviceController("192.168.1.200");
|
||||
|
||||
sidebar = new Sidebar(apiController);
|
||||
sidebar.Location = new Point(0, 0);
|
||||
Controls.Add(sidebar);
|
||||
|
||||
c3Device = new C3DeviceController("192.168.1.200");
|
||||
statusBar = new StatusBar("192.168.1.122", "192.168.1.200", TimeSpan.FromSeconds(1));
|
||||
statusBar.Location = new Point(0, sidebar.Location.Y + sidebar.Height + 26);
|
||||
statusBar.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
||||
Controls.Add(statusBar);
|
||||
|
||||
try
|
||||
{
|
||||
@@ -40,11 +44,6 @@ namespace AIParkingApplication
|
||||
return;
|
||||
}
|
||||
|
||||
statusBar = new StatusBar("192.168.1.122", "192.168.1.200", TimeSpan.FromSeconds(1));
|
||||
statusBar.Location = new Point(0, sidebar.Location.Y + sidebar.Height + 26);
|
||||
statusBar.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
||||
Controls.Add(statusBar);
|
||||
|
||||
InitAllLanes();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user