Commit e98428f4 张东亮

1222

1 个父辈 00077ff4
......@@ -54,12 +54,6 @@ namespace AGVControl
CommonVar.agvInfo[i].IsExistShelf = input[3];
flowPanelKanBan.Controls.Add(CommonVar.agvInfo[i].StateKanban);
AddForm(CommonVar.agvInfo[i].Name,new Manual(CommonVar.agvInfo[i]));
}
for (int i = 0; i < CommonVar.agvInfo.Count; i++)
{
CommonVar.agvInfo[i].StateKanban.SetBattery(50);
CommonVar.agvInfo[i].StateKanban.SetConnectState(true);
CommonVar.agvInfo[i].StateKanban.SetCurState("Ready");
CommonVar.agvInfo[i].StateKanban.Init();
}
......
......@@ -18,20 +18,23 @@ namespace AGVControl
{
InitializeComponent();
Agv = agv;
chkBxAuto.Checked = agv.IsUse;
btnReSendTask.Enabled = agv.IsUse;
btnAssignTask.Enabled = !agv.IsUse;
}
Agv_Info Agv;
bool isInit = false;
private void Manual_Load(object sender, EventArgs e)
{
lblInfo.Text = string.Format("[{0}]", Agv.IP);
cmbBxMission.Items.AddRange(CommonVar.showNameMissionName.Keys.ToArray());
cmbBxMission.SelectedIndex = 0;
isInit = true;
}
private void chkBxAuto_CheckedChanged(object sender, EventArgs e)
{
if (!isInit) return;
this.Invoke(new Action(() =>
{
......
......@@ -38,7 +38,7 @@ namespace AGV_UI
{
foreach (string item in missionShow.Keys)
{
ShowInfo(item, item);
ShowInfo(item, "");
}
SetTitle();
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!