public static void AddAgvSiteRate(string name, int site, float rate) { AgvSiteRate agvSiteRate = AgvSiteList.Find(c => { return(c.AgvName.Equals(name)); }); if (agvSiteRate == null) { AgvSiteList.Add(new AgvSiteRate(name, site, rate)); } }
public static void UpDateAgv(string name, int site = 0) { AgvSiteRate agvSiteRate = AgvSiteList.Find(c => { return(c.AgvName.Equals(name)); }); if (agvSiteRate == null) { AgvSiteRate agv = new AgvSiteRate(name, 23, 0); AgvSiteList.Add(agv); ModuleControl.UpdateAgvSite(name, 23, 0); } else { ModuleControl.UpdateAgvSite(name, agvSiteRate.GetSite(site), agvSiteRate.GetRate()); } }