FrmRobotUI.cs 651 字节
using DeviceLib.BLL;
using System.Windows.Forms;
using UControl.UC;
using UIControl.Forms;

namespace AGVDispatch
{
    public partial class FrmRobotUI : FrmBase
    {
        public FlowLayoutPanel RobotUIs;
        public FrmRobotUI()
        {
            RobotUIs = new FlowLayoutPanel();
            InitializeComponent();
            panel2.Controls.Add(RobotUIs);
            RobotUIs.AutoScroll = true;
            RobotUIs.Dock = System.Windows.Forms.DockStyle.Fill;
            foreach (var item in RobotManager.GetAllRobots())
            {
                RobotUIs.Controls.Add(new UCRobotStatus(item));
            }
        }
    }
}