public void RemoveProcess(EventTokenProcessPartsTrigger token) { foreach (var pt in Parts.GetParts <PartsJitProcess>(LAYER.JitProcess, a => a.ID == token.Process.ID)) { Parts.Remove(PaneJitParts, pt, LAYER.JitProcess); } Redraw(); }
public void CreateProcess(EventTokenProcessPartsTrigger token) { var pt = new PartsJitProcess { ID = token.Process.ID, Location = CodePos <Distance, Distance> .From((Distance)token.Process.ChildVriables["LocationX"].Value, (Distance)token.Process.ChildVriables["LocationY"].Value), Width = (Distance)token.Process.ChildVriables["Width"].Value, Height = (Distance)token.Process.ChildVriables["Height"].Value, PositionerX = DistancePositionerX, PositionerY = DistancePositionerY, CoderX = DistanceCoderX, CoderY = DistanceCoderY, }; Parts.Add(PaneJitParts, pt, LAYER.JitProcess); Redraw(); }
public void ProcessRemoved(EventTokenProcessPartsTrigger token) { RemoveCassette(token.Process.ID); }