public void CreatePreHeatLinesX(ushort size, int lineOrder, float lineOffset, float speed, double frequency, uint scantimes, double beamvalue, double focusOffset, bool isPreheat) { try { _preHeat = new PreHeatSweep(size, lineOrder, lineOffset, speed, frequency, _preHeatScan, beamvalue, focusOffset, isPreheat); for (int i = 0; i < scantimes; i++) { /*if (i != 0 && i % 10 == 0) { * m_PackageManager.Add(new PackageEnvelope(new HalfPreHeatHorizonPackage(_preHeat))); * } * else { * m_PackageManager.Add(new PackageEnvelope(new PreHeatHorizonPackage(_preHeat))); * }*/ m_PackageManager.Add(new PackageEnvelope(new PreHeatHorizonPackage(_preHeat))); } } catch (Exception ex) { throw new Exception(ex.ToString()); } }
public ActionResult Create(Packages package) { try { //call the OwnerManager to add PackageManager.Add(package); return(RedirectToAction(nameof(Details))); } catch { return(View()); } }