AIParkingApplicationForm - Refactor abit

This commit is contained in:
DucDangAnh 2020-07-13 10:02:10 +07:00
parent 8ae4adae0a
commit b50ea3c97c

View File

@ -25,13 +25,17 @@ namespace AIParkingApplication
this.configOnWeb = configOnWeb;
c3Device = new C3DeviceController("192.168.1.200");
sidebar = new Sidebar(apiController);
sidebar.Location = new Point(0, 0);
sidebar = new Sidebar(apiController)
{
Location = new Point(0, 0)
};
Controls.Add(sidebar);
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;
statusBar = new StatusBar("192.168.1.122", "192.168.1.200", TimeSpan.FromSeconds(1))
{
Location = new Point(0, sidebar.Location.Y + sidebar.Height + 26),
Anchor = AnchorStyles.Bottom | AnchorStyles.Left
};
Controls.Add(statusBar);
try