优化当重新生成点位后,内存中的点位信息重新加载

master
lhiven 1 year ago
parent e990d744a1
commit eb919fa09a

@ -22,6 +22,7 @@ namespace Rs.MotionPlat.Commom
static ConcurrentDictionary<string, SlotPoint> trayPoints = new ConcurrentDictionary<string, SlotPoint>();
public static void LoadPoint()
{
trayPoints.Clear();
string querySql = "select * from TrayPoints";
DataTable dt = db.GetDataTable(querySql);
if (ObjectHelper.IsNotNullorEmpty(dt))

@ -108,6 +108,7 @@ namespace Rs.MotionPlat.Recipe
}
}
BindPoints();
TrayPointManager.LoadPoint();
}
}

@ -145,6 +145,7 @@ namespace Rs.MotionPlat.Recipe
}
BindPoints();
TrayPointManager.LoadPoint();
}
private void btnTeach_Click(object sender, EventArgs e)

Loading…
Cancel
Save